ip: only set rx_sw_if_index when connection found to avoid following crash like tcp... 68/36868/2
authorXiaoming Jiang <jiangxiaoming@outlook.com>
Thu, 11 Aug 2022 15:04:48 +0000 (15:04 +0000)
committerXiaoming Jiang <jiangxiaoming@outlook.com>
Thu, 11 Aug 2022 15:13:51 +0000 (15:13 +0000)
commit30be19ce98e539142288a6e18cae9fea1bf0536f
treea081088b7c459f188cf9590e7dc04d60847b3156
parent41a85c0a263302d8a9e9cf758d6b259aaf957c49
ip: only set rx_sw_if_index when connection found to avoid following crash like tcp punt

Type: fix
Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com>
Change-Id: I894a881cec1888b392d26fdfb385f97c31113ef1
src/vnet/tcp/tcp_inlines.h