diff options
author | Koichiro Den <koichiro.den@canonical.com> | 2024-12-06 10:10:45 +0900 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-12-10 11:22:21 +0100 |
commit | 1480f0f61b675567ca5d0943d6ef2e39172dcafd (patch) | |
tree | d1f98b7ee8a2ca0542324f54bf2134a53bc639f8 /net/unix/af_unix.c | |
parent | 8d6712c892019b9b9dc5c7039edd3c9d770b510b (diff) | |
download | linux-1480f0f61b675567ca5d0943d6ef2e39172dcafd.tar.gz linux-1480f0f61b675567ca5d0943d6ef2e39172dcafd.tar.bz2 linux-1480f0f61b675567ca5d0943d6ef2e39172dcafd.zip |
virtio_net: ensure netdev_tx_reset_queue is called on tx ring resize
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: c8bd1f7f3e61 ("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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions