Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-07 Thread Michael S. Tsirkin
On Tue, Mar 07, 2023 at 10:53:41AM +0100, Paolo Abeni wrote: > 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" > > wrote: > > > On Mon, Mar 06, 2023 at 12:15:33PM +0800, Xuan Zhuo wrote: > > > > If the queue of xdp xmit is not

Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-07 Thread Xuan Zhuo
On Tue, 07 Mar 2023 10:53:41 +0100, Paolo Abeni wrote: > 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" > > wrote: > > > On Mon, Mar 06, 2023 at 12:15:33PM +0800, Xuan Zhuo wrote: > > > > If the queue of xdp xmit is not an in

Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-07 Thread Paolo Abeni
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" > 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

Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-06 Thread Xuan Zhuo
On Mon, 6 Mar 2023 12:58:22 -0500, "Michael S. Tsirkin" 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 e

Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-06 Thread Michael S. Tsirkin
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 pat

Re: [PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-06 Thread Alexander H Duyck
On Mon, 2023-03-06 at 12:15 +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

[PATCH net 0/2] add checking sq is full inside xdp xmit

2023-03-05 Thread Xuan Zhuo
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. Xuan Zhuo (2):