Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-17 Thread Jason Wang
On 2021/2/11 5:40 上午, Michael S. Tsirkin wrote: On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queu

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-11 Thread Jesper Dangaard Brouer
On Wed, 10 Feb 2021 16:40:41 -0500 "Michael S. Tsirkin" wrote: > On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: > > The number of queues implemented by many virtio backends is limited, > > especially some machines have a large number of CPUs. In this case, it > > is often impossible t

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-10 Thread Michael S. Tsirkin
On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: > The number of queues implemented by many virtio backends is limited, > especially some machines have a large number of CPUs. In this case, it > is often impossible to allocate a separate queue for XDP_TX. > > This patch allows XDP_TX to

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-01-15 Thread Jakub Kicinski
On Wed, 13 Jan 2021 16:08:57 +0800 Xuan Zhuo wrote: > The number of queues implemented by many virtio backends is limited, > especially some machines have a large number of CPUs. In this case, it > is often impossible to allocate a separate queue for XDP_TX. > > This patch allows XDP_TX to run by

[PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-01-13 Thread Xuan Zhuo
The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queue for XDP_TX. This patch allows XDP_TX to run by reuse the existing SQ with __netif_tx_lock() hold when there a