Skip to content
Success

Changes

Summary

  1. Introduce hashtable to look up gtp_tundev by local TEID (details)
Commit b6d689d677144613a83b382d3e09b423c159f220 by Pau Espin Pedrol
Introduce hashtable to look up gtp_tundev by local TEID

Use this hashtable while looking up for tunend based on
<access.local.teid, access.remote.teid, access.remote.addr>.
This kind of look up is used every time a session is added or removed,
which means potentially thousands of tunend sessions were being iterated
linerarly every time.

For simplification (easier/quicker hashtable key generation), reduce the
whole key presented above to a more general one based on
"access.local.teid". This is usually enough since we are anyways
allocating local TEIDs globally per tunnel without caring about remote
address.

Change-Id: Ib12ecc8ce87175071c52c0ed2217a29d901f0f05
The file was modifiedinclude/osmocom/upf/upf_gtp.h
The file was modifiedsrc/osmo-upf/upf_gtp.c