Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: always set ip rx_sw_if_index
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_inlines.h
diff --git
a/src/vnet/tcp/tcp_inlines.h
b/src/vnet/tcp/tcp_inlines.h
index
e82f308
..
d57b305
100644
(file)
--- 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) */
/* 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)
{
if (is_ip4)
{