virtio: fix txq locking 29/29129/2
authorBenoît Ganne <bganne@cisco.com>
Tue, 15 Sep 2020 08:58:07 +0000 (10:58 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 30 Sep 2020 11:31:13 +0000 (11:31 +0000)
commit47e0bd7303b1bcc81c3458ca9e26b43a39fcfe17
tree1bf7504439bad270e7df0e4f392a83aca5cfda9e
parentddb070e8b1481cf9db77bc269d9d9754958a213b
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>
(cherry picked from commit b6b484d01adb8ab2ef5a50d5a3d6f3f097df2e0c)
src/vnet/devices/virtio/node.c
src/vnet/devices/virtio/pci.c
src/vppinfra/lock.h