[PATCH 0/2] virtio: Fixes for TX ring sizing and resize error reporting

Laurent Vivier posted 2 patches 7 months ago
There is a newer version of this series
drivers/net/virtio_net.c     | 6 ++++++
drivers/virtio/virtio_ring.c | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
[PATCH 0/2] virtio: Fixes for TX ring sizing and resize error reporting
Posted by Laurent Vivier 7 months ago
This patch series contains two fixes for the virtio subsystem.

The first patch fixes an error reporting bug in virtio_ring's
virtqueue_resize() function. Previously, errors from internal resize
helpers could be masked if the subsequent re-enabling of the virtqueue
succeeded. This patch restores the correct error propagation, ensuring that
callers of virtqueue_resize() are properly informed of underlying resize
failures.

The second patch addresses a reliability issue in virtio_net where the TX
ring size could be configured too small, potentially leading to
persistently stopped queues and degraded performance. It enforces a
minimum TX ring size to ensure there's always enough space for at least one
maximally-fragmented packet plus an additional slot.

Laurent Vivier (2):
  virtio_ring: Fix error reporting in virtqueue_resize
  virtio_net: Enforce minimum TX ring size for reliability

 drivers/net/virtio_net.c     | 6 ++++++
 drivers/virtio/virtio_ring.c | 8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.49.0