Skip to content
Success

Changes

Summary

  1. Remove unused file up_session_to_gtp.c (details)
  2. Simplify up_session_choose_f_teid() with early returns (details)
  3. Introduce hashtable to lookup session by F-TEID (details)
  4. Introduce hashtable to lookup chain_id (details)
Commit 63c98c38f15de80e5b56980588ce541b1fb4a135 by Pau Espin Pedrol
Remove unused file up_session_to_gtp.c

Change-Id: Iabdf4855be72759569d1ac254774311f8682a2df
The file was removedinclude/osmocom/upf/up_session_to_gtp.c
Commit d4a4f0ce63d1fc285676e853132afcaa77957026 by Pau Espin Pedrol
Simplify up_session_choose_f_teid() with early returns

Change-Id: I6e8c64d093588157c86bb3acaaeed458ff73132d
The file was modifiedsrc/osmo-upf/up_session.c
Commit c27e317b217391336b0b63c19bf537a5e02377d3 by Pau Espin Pedrol
Introduce hashtable to lookup session by F-TEID

This is a hot path when creating new sessions. Previous code would take
ages specially when UPF already had thousands of sessions created and a
new TEID to allocate was being looked up.

Related: SYS#6398
Change-Id: I90ecbb07b242c1de2298261019f24aa5f5810fda
The file was modifiedsrc/osmo-upf/upf.c
The file was modifiedsrc/osmo-upf/up_session.c
The file was modifiedinclude/osmocom/upf/up_session.h
The file was modifiedinclude/osmocom/upf/upf.h
Commit bede7f130f1e4ff96820efe9a79f58522a6cab0a by Pau Espin Pedrol
Introduce hashtable to lookup chain_id

This lookup was taking ages specially when UPF already managed thousands
of sessions.

Related: SYS#6398
Change-Id: I7df8fd945eedbda98bd08e9fb2f382e0f55c2983
The file was modifiedsrc/osmo-upf/up_gtp_action.c
The file was modifiedinclude/osmocom/upf/upf_nft.h
The file was modifiedsrc/osmo-upf/up_session.c
The file was modifiedinclude/osmocom/upf/up_gtp_action.h
The file was modifiedinclude/osmocom/upf/upf.h
The file was modifiedsrc/osmo-upf/upf_nft.c
The file was modifiedsrc/osmo-upf/upf.c