On Mon, 6 Mar 2023 12:58:22 -0500, "Michael S. Tsirkin" <mst at redhat.com> wrote:> On Mon, Mar 06, 2023 at 12:15:33PM +0800, Xuan Zhuo wrote: > > If the queue of xdp xmit is not an independent queue, then when the xdp > > xmit used all the desc, the xmit from the __dev_queue_xmit() may encounter > > the following error. > > > > net ens4: Unexpected TXQ (0) queue failure: -28 > > > > This patch adds a check whether sq is full in XDP Xmit. > > > > Thanks. > > Acked-by: Michael S. Tsirkin <mst at redhat.com> > > needed for stable?Yes i think. Thanks.> > > Xuan Zhuo (2): > > virtio_net: separate the logic of checking whether sq is full > > virtio_net: add checking sq is full inside xdp xmit > > > > drivers/net/virtio_net.c | 78 ++++++++++++++++++++++++---------------- > > 1 file changed, 47 insertions(+), 31 deletions(-) > > > > -- > > 2.32.0.3.g01195cf9f >
Hi, On Tue, 2023-03-07 at 09:49 +0800, Xuan Zhuo wrote:> On Mon, 6 Mar 2023 12:58:22 -0500, "Michael S. Tsirkin" <mst at redhat.com> wrote: > > On Mon, Mar 06, 2023 at 12:15:33PM +0800, Xuan Zhuo wrote: > > > If the queue of xdp xmit is not an independent queue, then when the xdp > > > xmit used all the desc, the xmit from the __dev_queue_xmit() may encounter > > > the following error. > > > > > > net ens4: Unexpected TXQ (0) queue failure: -28 > > > > > > This patch adds a check whether sq is full in XDP Xmit. > > > > > > Thanks. > > > > Acked-by: Michael S. Tsirkin <mst at redhat.com> > > > > needed for stable? > > Yes i think.Could you please re-post including a suitable 'Fixes' tag? That would address stable, too. Additionally you could rename check_sq_full() in patch 1, perhaps 'check_disable_sq_full()' would do. You can retain the already collected tags. Thanks! Paolo
Maybe Matching Threads
- [PATCH net 0/2] add checking sq is full inside xdp xmit
- [PATCH net, stable v1 0/3] add checking sq is full inside xdp xmit
- [PATCH net, stable v1 3/3] virtio_net: add checking sq is full inside xdp xmit
- [PATCH vhost v13 05/12] virtio_ring: introduce virtqueue_dma_dev()
- [RFC net-next 0/8] virtio_net: refactor xdp codes