nat: distribute nat44-ed in2out sessions by rx vrf 17/38517/3
authorVladislav Grishenko <[email protected]>
Wed, 14 Dec 2022 20:33:31 +0000 (01:33 +0500)
committerOle Tr�an <[email protected]>
Thu, 13 Apr 2023 08:04:22 +0000 (08:04 +0000)
commitb8a663c56ddb3293c46097e9c2168bda3088ecb7
treec1b07a00d2abe21f68bce1c6eb146782de9e33be
parent407b1488d559cdcbc37b087ba62c18a95ce165db
nat: distribute nat44-ed in2out sessions by rx vrf

Nat in2out sessions are distributing among workers by client
addresses. In case there's multiple client vrfs with very
similar client addresses (usually from rfc1918), session
distribution/load can be unfair just due similar hash.
Let's take dynamic client fib_index into account, it'll affect
external port range only, outside address picking has own
address-based hash therefore not affected.

Type: improvement
Change-Id: I56ab2e1ce8dd27f2b1f9e7f22839ccf7774bfb82
Signed-off-by: Vladislav Grishenko <[email protected]>
src/plugins/nat/nat44-ed/nat44_ed.c