diff options
author | Florin Coras <fcoras@cisco.com> | 2018-06-01 12:22:23 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-06-04 17:05:01 +0000 |
commit | 1b25552ebb8f653d473bd58a3bf56499701c792d (patch) | |
tree | d11c2443b6000700c30b668b068f7002bfdd1403 /src/vnet/ip/ip6_forward.c | |
parent | 1f8697c4b68c81766a7b9734e816ebfccffb3edc (diff) |
ip4: optimize ip4_local
"sh run" says the number of clocks for my tcp based throughput test
dropped from ~43 to ~23
Change-Id: I719439ba7fc079ad36be1432c5d7cf74e3b70d73
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip6_forward.c')
-rw-r--r-- | src/vnet/ip/ip6_forward.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_forward.c b/src/vnet/ip/ip6_forward.c index 275bcc67b69..a66070302c0 100644 --- a/src/vnet/ip/ip6_forward.c +++ b/src/vnet/ip/ip6_forward.c @@ -1335,6 +1335,7 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node, error0 = (!ip6_urpf_loose_check (im, p0, ip0) ? IP6_ERROR_SRC_LOOKUP_MISS : error0); } + vnet_buffer (p0)->ip.fib_index = vnet_buffer (p0)->sw_if_index[VLIB_TX] != ~0 ? vnet_buffer (p0)->sw_if_index[VLIB_TX] : |