nat: ED: store both thread&session idx in hash 24/26724/10
authorKlement Sekera <ksekera@cisco.com>
Wed, 22 Apr 2020 12:45:50 +0000 (12:45 +0000)
committerOle Trøan <otroan@employees.org>
Thu, 14 May 2020 12:12:45 +0000 (12:12 +0000)
commit2a595da121b28784f73e710534522583cac7af40
treec43c09673183f6ab4a0cee0b2329458581bfc8ce
parent88120824acc299a0aec17ce4c208dbc8be394779
nat: ED: store both thread&session idx in hash

By storing thread and session index in hash table we are able to skip
multiple hash lookups in multi-worker scenario, which were used for
handoff before. Also, by storing sesion index in vnet_buffer2, we can
avoid repeating the lookup after handoff.

Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I406fb12f4e2dd8f4a5ca5d83d59dbc37e1af9abf
src/plugins/nat/in2out_ed.c
src/plugins/nat/nat.c
src/plugins/nat/nat.h
src/plugins/nat/nat44/inlines.h
src/plugins/nat/nat44_classify.c
src/plugins/nat/nat44_cli.c
src/plugins/nat/nat44_hairpinning.c
src/plugins/nat/nat_inlines.h
src/plugins/nat/out2in_ed.c
src/vnet/buffer.h