virtio: fix txq locking 42/28842/2
authorBenoît Ganne <bganne@cisco.com>
Tue, 15 Sep 2020 08:58:07 +0000 (10:58 +0200)
committerDamjan Marion <dmarion@me.com>
Fri, 18 Sep 2020 10:40:47 +0000 (10:40 +0000)
commitb6b484d01adb8ab2ef5a50d5a3d6f3f097df2e0c
tree62cf123032c0cfbc02ef31c8e7bea329af77e072
parent1965f750bf5f399a11c75d7ba14a52a504c69227
virtio: fix txq locking

Initialize txq lock only if some txq are shared and check if another
worker is already operating on the txq before processing gro timeouts
in input node.

Type: fix

Change-Id: I89dab6c0e6eb6a7aa621fa1548b0a2c76e6c7581
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/devices/virtio/node.c
src/vnet/devices/virtio/pci.c
src/vppinfra/lock.h