aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat66.h
diff options
context:
space:
mode:
authorNitin Saxena <nsaxena@marvell.com>2020-01-04 12:28:42 +0530
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 15:28:04 +0000
commitd07624f14994b2780be006ff5f0f06bef6929900 (patch)
tree6571c2c3e6d17766864dd9cc100ec90da32f2d64 /src/plugins/nat/nat66.h
parenta4200a6824f8867df4f24db7723d78769f68914c (diff)
ip: avoid fib lookup for consecutive pkts having same source IP
Type: fix Fixes: be2286b0 This patch does following: - If terminating frame has consecutive packets with same source IP, this patch avoids fib lookup for those packets in ip4-local node. This drops cycle count for ip4-local node on both ARM and x86. It being done by enabling dead code in else {} case of ip4_local_check_src_x2() and ip4_local_check_src() functions. - In case all packets in terminating frame have unique source IP (e.g: incrementing), ip4-local is costlier by 2 cycles (broadwell) Change-Id: I472ddc324716cec8bfe601568b8aeb7565f97ab3 Signed-off-by: Nitin Saxena <nsaxena@marvell.com> (cherry picked from commit 2d18d2ea9f0e3d6c47d365ec135af651b14e8165)
Diffstat (limited to 'src/plugins/nat/nat66.h')
0 files changed, 0 insertions, 0 deletions