[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230308024935.91686-1-xuanzhuo@linux.alibaba.com>
Date: Wed, 8 Mar 2023 10:49:32 +0800
From: Xuan Zhuo <xuanzhuo@...ux.alibaba.com>
To: netdev@...r.kernel.org
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Jason Wang <jasowang@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
virtualization@...ts.linux-foundation.org, bpf@...r.kernel.org,
Yichun Zhang <yichun@...nresty.com>,
Alexander Duyck <alexanderduyck@...com>
Subject: [PATCH net, stable v1 0/3] add checking sq is full inside xdp xmit
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.
v1:
1. rename to check_sq_full_and_disable
2. reorder some funcs to avoid declaration
Xuan Zhuo (3):
virtio_net: reorder some funcs
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 | 155 +++++++++++++++++++++------------------
1 file changed, 85 insertions(+), 70 deletions(-)
--
2.32.0.3.g01195cf9f
Powered by blists - more mailing lists