diff options
author | Klement Sekera <ksekera@cisco.com> | 2020-04-15 15:37:18 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-04-24 15:22:24 +0000 |
commit | d9e18aac39827b576dda5ee456e17694988f5ac6 (patch) | |
tree | 4fbfc680d777cc90d51270c9665693d1b64b9b79 /src/plugins/nat/nat.h | |
parent | 5581de6d6d69388f899692f2dc201ff76a06af3d (diff) |
nat: ignore user hash in ED NAT
With port overloading, port is no longer a scarce resource and there
is no need to limit connections per internal IP. This saves one hash
insert in slow path.
Type: improvement
Change-Id: I8a7a9713ac855fa99fa1617ec684f757cf6e09ae
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r-- | src/plugins/nat/nat.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h index 0fc174d2a91..98c18c06635 100644 --- a/src/plugins/nat/nat.h +++ b/src/plugins/nat/nat.h @@ -1317,13 +1317,12 @@ snat_session_t *nat_session_alloc_or_recycle (snat_main_t * sm, /** * @brief Allocate NAT endpoint-dependent session * - * @param u NAT user * @param thread_index thread index * * @return session data structure on success otherwise zero value */ -snat_session_t *nat_ed_session_alloc (snat_main_t * sm, snat_user_t * u, - u32 thread_index, f64 now); +snat_session_t *nat_ed_session_alloc (snat_main_t * sm, u32 thread_index, + f64 now); /** * @brief Set address and port assignment algorithm for MAP-E CE |