Commit 813be59
committed
virtio_net: ensure netdev_tx_reset_queue is called on tx ring resize
JIRA: https://issues.redhat.com/browse/RHEL-56981
virtnet_tx_resize() flushes remaining tx skbs, requiring DQL counters to
be reset when flushing has actually occurred. Add
virtnet_sq_free_unused_buf_done() as a callback for virtqueue_reset() to
handle this.
Fixes: c8bd1f7 ("virtio_net: add support for Byte Queue Limits")
Cc: <stable@vger.kernel.org> # v6.11+
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 1480f0f)
Signed-off-by: Cindy Lu <lulu@redhat.com>1 parent ce39cb0 commit 813be59
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
| |||
3222 | 3223 | | |
3223 | 3224 | | |
3224 | 3225 | | |
3225 | | - | |
| 3226 | + | |
| 3227 | + | |
3226 | 3228 | | |
3227 | 3229 | | |
3228 | 3230 | | |
| |||
5990 | 5992 | | |
5991 | 5993 | | |
5992 | 5994 | | |
| 5995 | + | |
| 5996 | + | |
| 5997 | + | |
| 5998 | + | |
| 5999 | + | |
| 6000 | + | |
| 6001 | + | |
| 6002 | + | |
5993 | 6003 | | |
5994 | 6004 | | |
5995 | 6005 | | |
| |||
0 commit comments