virtio: net: Add missing virtqueue_kick in free_pkt
authorChristian Speich <c.speich@avm.de>
Thu, 24 Jul 2025 12:29:59 +0000 (14:29 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Fri, 1 Aug 2025 07:30:47 +0000 (09:30 +0200)
commitd1b4bfc98441663de1388bff5043b7a9351c8c5a
tree99a7f0c0375050dbd76f334fde46250248de27e8
parent3c1ac44caaa243acb7c3fe0aca412778b8cc28e6
virtio: net: Add missing virtqueue_kick in free_pkt

Every virtqueue_add must eventually be followed by virtqueue_kick for to
properly notify the peer that new buffers have been put into the queue.

This is currently missing for virtio-net and may result in non-working
network when the host has depleted the rx buffers and waits for new
buffers. Depending on the host it may busy poll on the virtio queue or
wait for the kick. Qemu does the latter and may break.

Signed-off-by: Christian Speich <c.speich@avm.de>
drivers/virtio/virtio_net.c