vhost-user: restart vpp may cause vhost to crash 54/18254/1
authorSteven Luong <sluong@cisco.com>
Wed, 13 Mar 2019 04:35:42 +0000 (21:35 -0700)
committersteven luong <sluong@cisco.com>
Wed, 13 Mar 2019 14:11:53 +0000 (14:11 +0000)
commit7e5735d31274ed281aba9785667c2472cacdcc5f
tree717e497d7187fcae84b6404283d309a4ac407854
parent22e1f1d136790f1ee974ace7e299492582921b66
vhost-user: restart vpp may cause vhost to crash

Fix a typo in vhost_user_rx_discard_packet which may cause
txvq->last_avail_idx to go wild.

Change-Id: Ifaeb58835dff9b7ea82c061442722f1dcaa5d9a4
Signed-off-by: Steven Luong <sluong@cisco.com>
(cherry picked from commit 39382976701926c1f34191c1311829c15a53cb01)
src/vnet/devices/virtio/vhost_user_input.c