SNAT: fix address and port allocation for multiple worker threads (VPP-925) 93/7893/5
authorMatus Fabian <matfabia@cisco.com>
Thu, 3 Aug 2017 07:58:05 +0000 (00:58 -0700)
committerNeale Ranns <nranns@cisco.com>
Fri, 4 Aug 2017 08:21:27 +0000 (08:21 +0000)
commit7801ca29b8f1b3a7b2ff68f3f84a0ae02a58b563
treedc50748b1e03a0ae93f2214baa7ca98d5e6064fa
parent33129bb9a3e954b7c9ba7a72f16550b1cf91dc9e
SNAT: fix address and port allocation for multiple worker threads (VPP-925)

There is a chance to allocate the same outside address and port.
Assign a block of port numbers to each worker.

Change-Id: I6ef7dc0aab4834705f4e6097c362940d18d747e8
Signed-off-by: Matus Fabian <matfabia@cisco.com>
src/plugins/snat/in2out.c
src/plugins/snat/snat.c
src/plugins/snat/snat.h
src/scripts/vnet/snat