Skip to contentSkip to conversation

virtio: Fixes for TX ring sizing and resize error reporting

PATCH In review Laurent Vivier 8 participants 20 messages May 21, 2025 – Jul 8, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover virtio: Fixes for TX ring sizing and resize error reporting

This patch series contains two fixes and a cleanup 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 does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

v2: clenup '2+MAX_SKB_FRAGS'

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

 drivers/net/virtio_net.c     | 14 ++++++++++----
 drivers/virtio/virtio_ring.c |  8 ++++++--
 2 files changed, 16 insertions(+), 6 deletions(-)
Signature · 1 line
2.49.0
#1 lore raw

PATCH v2 1/3 virtio_ring: Fix error reporting in virtqueue_resize

The virtqueue_resize() function was not correctly propagating error codes from its internal resize helper functions, specifically virtqueue_resize_packet() and virtqueue_resize_split(). If these helpers returned an error, but the subsequent call to virtqueue_enable_after_reset() succeeded, the original error from the resize operation would be masked. Consequently, virtqueue_resize() could incorrectly report success to its caller despite an underlying resize failure.

This change restores the original code behavior:

       if (vdev->config->enable_vq_after_reset(_vq))
               return -EBUSY;

       return err;

Fix: commit ad48d53b5b3f ("virtio_ring: separate the logic of reset/enable from virtqueue_resize")

---
 drivers/virtio/virtio_ring.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/virtio/virtio_ring.c +6 -2
index b784aab66867..4397392bfef0 100644
@@ -2797,7 +2797,7 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
 		     void (*recycle_done)(struct virtqueue *vq))
 {
 	struct vring_virtqueue *vq = to_vvq(_vq);
-	int err;
+	int err, err_reset;
 
 	if (num > vq->vq.num_max)
 		return -E2BIG;
@@ -2819,7 +2819,11 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
 	else
 		err = virtqueue_resize_split(_vq, num);
 
-	return virtqueue_enable_after_reset(_vq);
+	err_reset = virtqueue_enable_after_reset(_vq);
+	if (err_reset)
+		return err_reset;
+
+	return err;
 }
 EXPORT_SYMBOL_GPL(virtqueue_resize);
 
Signature · 1 line
2.49.0
Acked-by on v2 1/3
#2 lore raw

Re: [PATCH v2 1/3] virtio_ring: Fix error reporting in virtqueue_resize

Quoted 16 lines · Laurent Vivier

The virtqueue_resize() function was not correctly propagating error codes from its internal resize helper functions, specifically virtqueue_resize_packet() and virtqueue_resize_split(). If these helpers returned an error, but the subsequent call to virtqueue_enable_after_reset() succeeded, the original error from the resize operation would be masked. Consequently, virtqueue_resize() could incorrectly report success to its caller despite an underlying resize failure.

This change restores the original code behavior:

       if (vdev->config->enable_vq_after_reset(_vq))
               return -EBUSY;

       return err;
Quoted 4 lines

Fix: commit ad48d53b5b3f ("virtio_ring: separate the logic of reset/enable from virtqueue_resize")

---

Thanks

#3 lore raw

PATCH v2 2/3 virtio_net: Cleanup '2+MAX_SKB_FRAGS'

In reply to Laurent Vivier

Improve consistency by using everywhere it is needed 'MAX_SKB_FRAGS + 2' rather than '2+MAX_SKB_FRAGS' or '2 + MAX_SKB_FRAGS'.

No functional change.

---
 drivers/net/virtio_net.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/virtio_net.c +4 -4
index e53ba600605a..ff4160243538 100644
@@ -1084,7 +1084,7 @@ static bool tx_may_stop(struct virtnet_info *vi,
 	 * Since most packets only take 1 or 2 ring slots, stopping the queue
 	 * early means 16 slots are typically wasted.
 	 */
-	if (sq->vq->num_free < 2+MAX_SKB_FRAGS) {
+	if (sq->vq->num_free < MAX_SKB_FRAGS + 2) {
 		struct netdev_queue *txq = netdev_get_tx_queue(dev, qnum);
 
 		netif_tx_stop_queue(txq);
@@ -1116,7 +1116,7 @@ static void check_sq_full_and_disable(struct virtnet_info *vi,
 		} else if (unlikely(!virtqueue_enable_cb_delayed(sq->vq))) {
 			/* More just got used, free them then recheck. */
 			free_old_xmit(sq, txq, false);
-			if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) {
+			if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 				netif_start_subqueue(dev, qnum);
 				u64_stats_update_begin(&sq->stats.syncp);
 				u64_stats_inc(&sq->stats.wake);
@@ -2998,7 +2998,7 @@ static void virtnet_poll_cleantx(struct receive_queue *rq, int budget)
 			free_old_xmit(sq, txq, !!budget);
 		} while (unlikely(!virtqueue_enable_cb_delayed(sq->vq)));
 
-		if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) {
+		if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 			if (netif_tx_queue_stopped(txq)) {
 				u64_stats_update_begin(&sq->stats.syncp);
 				u64_stats_inc(&sq->stats.wake);
@@ -3195,7 +3195,7 @@ static int virtnet_poll_tx(struct napi_struct *napi, int budget)
 	else
 		free_old_xmit(sq, txq, !!budget);
 
-	if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) {
+	if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 		if (netif_tx_queue_stopped(txq)) {
 			u64_stats_update_begin(&sq->stats.syncp);
 			u64_stats_inc(&sq->stats.wake);
Signature · 1 line
2.49.0
reviewer Reviewed-by on v2 2/3
#4 lore raw

Re: [PATCH v2 2/3] virtio_net: Cleanup '2+MAX_SKB_FRAGS'

Quoted 7 lines · Laurent Vivier

Improve consistency by using everywhere it is needed 'MAX_SKB_FRAGS + 2' rather than '2+MAX_SKB_FRAGS' or '2 + MAX_SKB_FRAGS'.

No functional change.

Quoted 47 lines
---
 drivers/net/virtio_net.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/virtio_net.c +4 -5
index e53ba600605a..ff4160243538 100644
@@ -1084,7 +1084,7 @@ static bool tx_may_stop(struct virtnet_info *vi,
 	 * Since most packets only take 1 or 2 ring slots, stopping the queue
 	 * early means 16 slots are typically wasted.
 	 */
-	if (sq->vq->num_free < 2+MAX_SKB_FRAGS) {
+	if (sq->vq->num_free < MAX_SKB_FRAGS + 2) {
 		struct netdev_queue *txq = netdev_get_tx_queue(dev, qnum);
 
 		netif_tx_stop_queue(txq);
@@ -1116,7 +1116,7 @@ static void check_sq_full_and_disable(struct virtnet_info *vi,
 		} else if (unlikely(!virtqueue_enable_cb_delayed(sq->vq))) {
 			/* More just got used, free them then recheck. */
 			free_old_xmit(sq, txq, false);
-			if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) {
+			if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 				netif_start_subqueue(dev, qnum);
 				u64_stats_update_begin(&sq->stats.syncp);
 				u64_stats_inc(&sq->stats.wake);
@@ -2998,7 +2998,7 @@ static void virtnet_poll_cleantx(struct receive_queue *rq, int budget)
 			free_old_xmit(sq, txq, !!budget);
 		} while (unlikely(!virtqueue_enable_cb_delayed(sq->vq)));
 
-		if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) {
+		if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 			if (netif_tx_queue_stopped(txq)) {
 				u64_stats_update_begin(&sq->stats.syncp);
 				u64_stats_inc(&sq->stats.wake);
@@ -3195,7 +3195,7 @@ static int virtnet_poll_tx(struct napi_struct *napi, int budget)
 	else
 		free_old_xmit(sq, txq, !!budget);
 
-	if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) {
+	if (sq->vq->num_free >= MAX_SKB_FRAGS + 2) {
 		if (netif_tx_queue_stopped(txq)) {
 			u64_stats_update_begin(&sq->stats.syncp);
 			u64_stats_inc(&sq->stats.wake);
--

2.49.0

#6 lore raw

PATCH v2 3/3 virtio_net: Enforce minimum TX ring size for reliability

In reply to Laurent Vivier

The tx_may_stop() logic stops TX queues if free descriptors (sq->vq->num_free) fall below the threshold of (MAX_SKB_FRAGS + 2). If the total ring size (ring_num) is not strictly greater than this value, queues can become persistently stopped or stop after minimal use, severely degrading performance.

A single sk_buff transmission typically requires descriptors for:
- The virtio_net_hdr (1 descriptor)
- The sk_buff's linear data (head) (1 descriptor)
- Paged fragments (up to MAX_SKB_FRAGS descriptors)

This patch enforces that the TX ring size ('ring_num') must be strictly greater than (MAX_SKB_FRAGS + 2). This ensures that the ring is always large enough to hold at least one maximally-fragmented packet plus at least one additional slot.

---
 drivers/net/virtio_net.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/virtio_net.c +6 -0
index ff4160243538..50b851834ae2 100644
@@ -3481,6 +3481,12 @@ static int virtnet_tx_resize(struct virtnet_info *vi, struct send_queue *sq,
 {
 	int qindex, err;
 
+	if (ring_num <= MAX_SKB_FRAGS + 2) {
+		netdev_err(vi->dev, "tx size (%d) cannot be smaller than %d\n",
+			   ring_num, MAX_SKB_FRAGS + 2);
+		return -EINVAL;
+	}
+
 	qindex = sq - vi->sq;
 
 	virtnet_tx_pause(vi, sq);
Signature · 1 line
2.49.0
reviewer Reviewed-by on v2 3/3
#7 lore raw

Re: [PATCH v2 3/3] virtio_net: Enforce minimum TX ring size for reliability

Quoted 11 lines · Laurent Vivier

The tx_may_stop() logic stops TX queues if free descriptors (sq->vq->num_free) fall below the threshold of (MAX_SKB_FRAGS + 2). If the total ring size (ring_num) is not strictly greater than this value, queues can become persistently stopped or stop after minimal use, severely degrading performance.

A single sk_buff transmission typically requires descriptors for:
- The virtio_net_hdr (1 descriptor)
- The sk_buff's linear data (head) (1 descriptor)
- Paged fragments (up to MAX_SKB_FRAGS descriptors)

Quoted 7 lines

This patch enforces that the TX ring size ('ring_num') must be strictly greater than (MAX_SKB_FRAGS + 2). This ensures that the ring is always large enough to hold at least one maximally-fragmented packet plus at least one additional slot.

Quoted 24 lines
---
 drivers/net/virtio_net.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/virtio_net.c +6 -1
index ff4160243538..50b851834ae2 100644
@@ -3481,6 +3481,12 @@ static int virtnet_tx_resize(struct virtnet_info *vi, struct send_queue *sq,
 {
 	int qindex, err;
 
+	if (ring_num <= MAX_SKB_FRAGS + 2) {
+		netdev_err(vi->dev, "tx size (%d) cannot be smaller than %d\n",
+			   ring_num, MAX_SKB_FRAGS + 2);
+		return -EINVAL;
+	}
+
 	qindex = sq - vi->sq;
 
 	virtnet_tx_pause(vi, sq);
--

2.49.0

Acked-by on v2 3/3
#8 lore raw

Re: [PATCH v2 3/3] virtio_net: Enforce minimum TX ring size for reliability

In reply to Laurent Vivier
Quoted 41 lines · Laurent Vivier

The tx_may_stop() logic stops TX queues if free descriptors (sq->vq->num_free) fall below the threshold of (MAX_SKB_FRAGS + 2). If the total ring size (ring_num) is not strictly greater than this value, queues can become persistently stopped or stop after minimal use, severely degrading performance.

A single sk_buff transmission typically requires descriptors for:
- The virtio_net_hdr (1 descriptor)
- The sk_buff's linear data (head) (1 descriptor)
- Paged fragments (up to MAX_SKB_FRAGS descriptors)

This patch enforces that the TX ring size ('ring_num') must be strictly greater than (MAX_SKB_FRAGS + 2). This ensures that the ring is always large enough to hold at least one maximally-fragmented packet plus at least one additional slot.

---
 drivers/net/virtio_net.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/virtio_net.c +6 -1
index ff4160243538..50b851834ae2 100644
@@ -3481,6 +3481,12 @@ static int virtnet_tx_resize(struct virtnet_info *vi, struct send_queue *sq,
 {
        int qindex, err;
 
+       if (ring_num <= MAX_SKB_FRAGS + 2) {
+               netdev_err(vi->dev, "tx size (%d) cannot be smaller than %d\n",
+                          ring_num, MAX_SKB_FRAGS + 2);
+               return -EINVAL;
+       }
+
        qindex = sq - vi->sq;
 
        virtnet_tx_pause(vi, sq);
--
Quoted 2 lines

2.49.0

Thanks

Tested-by on the v2 series
#9 lore raw
In reply to Laurent Vivier

Tested pass this series of patches with virtio-net regression tests, everything works fine.

Quoted 34 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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 does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

v2: clenup '2+MAX_SKB_FRAGS'

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

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

--
2.49.0

maintainer
#10 lore raw
In reply to Laurent Vivier
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

#11 lore raw
Quoted 18 lines · Paolo Abeni
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

Quoted 4 lines

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

Given 1/3 is in virtio I was going to take it. Just after rc1, though.

#12 lore raw
Quoted 19 lines · Michael S. Tsirkin
Quoted 18 lines · Paolo Abeni
Quoted 16 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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 does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

Quoted 8 lines
Quoted 4 lines

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

Given 1/3 is in virtio I was going to take it. Just after rc1, though.

Hi Michael,

rc2 is out. Do you always plan to merge these fixes?

Thanks,
Laurent

#13 lore raw
Quoted 25 lines · Laurent Vivier
Quoted 24 lines · Michael S. Tsirkin
Quoted 22 lines · Paolo Abeni
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

Quoted 8 lines
Quoted 3 lines

Given 1/3 is in virtio I was going to take it. Just after rc1, though.

Hi Michael,

rc2 is out. Do you always plan to merge these fixes?

Gently ping

Laurent

#14 lore raw
In reply to Michael S. Tsirkin
Quoted 19 lines · Michael S. Tsirkin
Quoted 18 lines · Paolo Abeni
Quoted 16 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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 does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

Quoted 8 lines
Quoted 4 lines

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

Given 1/3 is in virtio I was going to take it. Just after rc1, though.

Michael, if you don't have time to merge this series, perhaps Paolo can?

Thanks,
Laurent

#15 lore raw
Quoted 25 lines · Laurent Vivier
Quoted 24 lines · Michael S. Tsirkin
Quoted 22 lines · Paolo Abeni
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

Quoted 8 lines
Quoted 3 lines

Given 1/3 is in virtio I was going to take it. Just after rc1, though.

Michael, if you don't have time to merge this series, perhaps Paolo can?

Thanks,
Laurent

Sorry I forgot I asked that netdev guys don't handle it.

Signature · 1 line
MST
maintainer Acked-by
#16 lore raw
In reply to Paolo Abeni
Quoted 18 lines · Paolo Abeni
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

Quoted 4 lines

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Paolo

I take it back: given I am still not fully operational, I'd like it to be merged through net please. Does it have to be resubmitted for this?

Signature · 1 line
MST
maintainer
#17 lore raw
Quoted 22 lines · Michael S. Tsirkin
Quoted 21 lines · Paolo Abeni
Quoted 9 lines · Laurent Vivier

This patch series contains two fixes and a cleanup 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.

Quoted 7 lines

The second patch does a cleanup of the use of '2+MAX_SKB_FRAGS'

The third 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.

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Quoted 7 lines
Quoted 1 line

Paolo

I take it back: given I am still not fully operational, I'd like it to be merged through net please. Does it have to be resubmitted for this?

I just resurrected the series in PW, so no need to repost it.

Thanks,

Paolo

maintainer
#18 lore raw
Quoted 5 lines · On Thu, 3 Jul 2025 11:34:55 +0200 Paolo Abeni wrote:
Quoted 4 lines · Michael S. Tsirkin
Quoted 2 lines · Paolo Abeni

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

Quoted 7 lines
Quoted 5 lines

I take it back: given I am still not fully operational, I'd like it to be merged through net please. Does it have to be resubmitted for this?

I just resurrected the series in PW, so no need to repost it.

This was merged by Paolo as b0727b0ccd907a in net/main.

No reply from pw-bot I presume because patchwork is aggressively marking this series as Archived before the bot can get to it.

reviewer
#19 lore raw
Quoted 10 lines · Jakub Kicinski
Quoted 9 lines · On Thu, 3 Jul 2025 11:34:55 +0200 Paolo Abeni wrote:
Quoted 8 lines · Michael S. Tsirkin
Quoted 2 lines · Paolo Abeni

@Michael: it's not clear to me if you prefer take this series via your tree or if it should go via net. Please LMK, thanks!

I take it back: given I am still not fully operational, I'd like it to be merged through net please. Does it have to be resubmitted for this?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

I just resurrected the series in PW, so no need to repost it.

This was merged by Paolo as b0727b0ccd907a in net/main.

No reply from pw-bot I presume because patchwork is aggressively marking this series as Archived before the bot can get to it.

The bots are fighting again :(