virtio: fix the interrupt 67/32167/8
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 28 Apr 2021 16:55:45 +0000 (18:55 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Tue, 4 May 2021 16:48:11 +0000 (16:48 +0000)
commit6799f9b45379a8188bf418c61fe0e0aed5c14f01
tree4126cb0f07f9f3ca0fa9592bc640b63b91e5b24b
parentdb023809043f1dc64ed8c30dd5a575763df6045b
virtio: fix the interrupt

Type: fix

virtio/tap interfaces set the empty buffers in the input node
for receiving data. Backend uses those buffers, fills them with
data and notifies the virtio/tap driver. But virtio/tap driver
gets into stall state if interface is created and configured
through exec script on VPP startup.conf and put the interface in
interrupt mode while VPP is only configured with main thread.

This patch fixes the problem by prefilling buffers during the
interface creation.

Change-Id: Ibc4d0e70e127ccc4b7cf8b2b18406ae4b02c73b4
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/virtio/node.c
src/vnet/devices/virtio/virtio.c
src/vnet/devices/virtio/virtio_inline.h [new file with mode: 0644]