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

Re: [PATCH net-next 2/2] virtio_net: Reuse buffer free function

2023-01-13 Thread Alexander H Duyck
On Sat, 2023-01-14 at 00:36 +0200, Parav Pandit wrote: > virtnet_rq_free_unused_buf() helper function to free the buffer > already exists. Avoid code duplication by reusing existing function. > > Signed-off-by: Parav Pandit > --- > drivers/net/virtio_net.c | 8 +--- > 1 file changed, 1 inser

Re: [PATCH net-next 1/2] virtio_net: Fix short frame length check

2023-01-13 Thread Alexander H Duyck
On Sat, 2023-01-14 at 00:36 +0200, Parav Pandit wrote: > A smallest Ethernet frame defined by IEEE 802.3 is 60 bytes without any > preemble and CRC. > > Current code only checks for minimal 14 bytes of Ethernet header length. > Correct it to consider the minimum Ethernet frame length. > > Fixes: