tapv2: Sporadic SIGABRT in ethernet_input [VPP-1183] 72/11472/1
authorSteven <[email protected]>
Sat, 31 Mar 2018 05:18:11 +0000 (22:18 -0700)
committersteven luong <[email protected]>
Sat, 31 Mar 2018 14:38:12 +0000 (14:38 +0000)
commitca33d08caf2400d182705836c1533442a8a13aff
tree3524cc1a3fb30631fb343d5f94a7360368193106
parent213831192dc3cc8785c98c97482a3ec46df6dd47
tapv2: Sporadic SIGABRT in ethernet_input [VPP-1183]

virtio_free_rx_buffers uses the wrong slot in the vring to get
the buffer index. It uses desc_next. It should be last_used_idx
which is the slot number for the first valid descriptor.

Change-Id: I6b62b794f06869fbffffce45430b8b2e37b1266c
Signed-off-by: Steven <[email protected]>
(cherry picked from commit 074f698be5c2e6afc9df776b56a366bc3f404d95)
src/vnet/devices/tap/cli.c
src/vnet/devices/virtio/virtio.c