From 904638f4625c82d166d67870f9cf8088dd29a8b2 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 10 Nov 2021 07:39:51 -0800 Subject: ip: always set ip rx_sw_if_index Type: improvement Signed-off-by: Florin Coras Change-Id: I43f6bfa028ee37227f27a2fe0303662bf2631b10 --- src/vnet/tcp/tcp_inlines.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/vnet/tcp') diff --git a/src/vnet/tcp/tcp_inlines.h b/src/vnet/tcp/tcp_inlines.h index e82f308d9b8..d57b3059066 100644 --- a/src/vnet/tcp/tcp_inlines.h +++ b/src/vnet/tcp/tcp_inlines.h @@ -239,10 +239,7 @@ tcp_input_lookup_buffer (vlib_buffer_t * b, u8 thread_index, u32 * error, /* Set the sw_if_index[VLIB_RX] to the interface we received * the connection on (the local interface) */ - vnet_buffer (b)->sw_if_index[VLIB_RX] = - vnet_buffer (b)->ip.rx_sw_if_index != ~0 ? - vnet_buffer (b)->ip.rx_sw_if_index : - vnet_buffer (b)->sw_if_index[VLIB_RX]; + vnet_buffer (b)->sw_if_index[VLIB_RX] = vnet_buffer (b)->ip.rx_sw_if_index; if (is_ip4) { -- cgit 1.2.3-korg