Commit 426654b2 authored by Koichiro Den's avatar Koichiro Den Committed by Giuliano Procida
Browse files

UPSTREAM: virtio_net: ensure netdev_tx_reset_queue is called on bind xsk for tx



[ Upstream commit 76a771ec ]

virtnet_sq_bind_xsk_pool() flushes tx skbs and then resets tx queue, so
DQL counters need to be reset when flushing has actually occurred, Add
virtnet_sq_free_unused_buf_done() as a callback for virtqueue_resize()
to handle this.

Fixes: 21a4e3ce ("virtio_net: xsk: bind/unbind xsk for tx")
Change-Id: Ie4c65c90a92310316cc484dc612f81075649cf20
Signed-off-by: default avatarKoichiro Den <koichiro.den@canonical.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Reviewed-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit c43b0a18)
Bug: 437846539
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 71db1a37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment