Re: [PATCH net-next 0/5] virtio-net: sq support premapped mode

2024-01-24 Thread Xuan Zhuo
On Thu, 25 Jan 2024 14:14:58 +0800, Jason Wang wrote: > On Thu, Jan 25, 2024 at 1:52 PM Xuan Zhuo wrote: > > > > On Thu, 25 Jan 2024 13:42:05 +0800, Xuan Zhuo > > wrote: > > > On Thu, 25 Jan 2024 11:39:28 +0800, Jason Wang > > > wrote: > > > > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo > > >

Re: [PATCH net-next 5/5] virtio_net: sq support premapped mode

2024-01-24 Thread Xuan Zhuo
On Thu, 25 Jan 2024 11:39:20 +0800, Jason Wang wrote: > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > > > If the xsk is enabling, the xsk tx will share the send queue. > > Any reason for this? Technically, virtio-net can work as other NIC > like 256 queues. There could be some work like op

Re: [PATCH net-next 0/5] virtio-net: sq support premapped mode

2024-01-24 Thread Jason Wang
On Thu, Jan 25, 2024 at 1:52 PM Xuan Zhuo wrote: > > On Thu, 25 Jan 2024 13:42:05 +0800, Xuan Zhuo > wrote: > > On Thu, 25 Jan 2024 11:39:28 +0800, Jason Wang wrote: > > > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo > > > wrote: > > > > > > > > This is the second part of virtio-net support AF_X

Re: [PATCH net-next 4/5] virtio_ring: introduce virtqueue_get_dma_premapped()

2024-01-24 Thread Xuan Zhuo
On Thu, 25 Jan 2024 11:39:03 +0800, Jason Wang wrote: > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > > > Introduce helper virtqueue_get_dma_premapped(), then the driver > > can know whether dma unmap is needed. > > > > Signed-off-by: Xuan Zhuo > > --- > > drivers/net/virtio/main.c

Re: [PATCH net-next 0/5] virtio-net: sq support premapped mode

2024-01-24 Thread Xuan Zhuo
On Thu, 25 Jan 2024 13:42:05 +0800, Xuan Zhuo wrote: > On Thu, 25 Jan 2024 11:39:28 +0800, Jason Wang wrote: > > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo > > wrote: > > > > > > This is the second part of virtio-net support AF_XDP zero copy. > > > > > > The whole patch set > > > http://lore.ke

Re: [PATCH net-next 0/5] virtio-net: sq support premapped mode

2024-01-24 Thread Xuan Zhuo
On Thu, 25 Jan 2024 11:39:28 +0800, Jason Wang wrote: > On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > > > This is the second part of virtio-net support AF_XDP zero copy. > > > > The whole patch set > > http://lore.kernel.org/all/20231229073108.57778-1-xuanz...@linux.alibaba.com > > > > ##

Re: [PATCH net-next 0/5] virtio-net: sq support premapped mode

2024-01-24 Thread Jason Wang
On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > This is the second part of virtio-net support AF_XDP zero copy. > > The whole patch set > http://lore.kernel.org/all/20231229073108.57778-1-xuanz...@linux.alibaba.com > > ## About the branch > > This patch set is pushed to the net-next branch, b

Re: [PATCH net-next 5/5] virtio_net: sq support premapped mode

2024-01-24 Thread Jason Wang
On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > If the xsk is enabling, the xsk tx will share the send queue. Any reason for this? Technically, virtio-net can work as other NIC like 256 queues. There could be some work like optimizing the interrupt allocations etc. > But the xsk requires th

Re: [PATCH net-next 4/5] virtio_ring: introduce virtqueue_get_dma_premapped()

2024-01-24 Thread Jason Wang
On Tue, Jan 16, 2024 at 3:59 PM Xuan Zhuo wrote: > > Introduce helper virtqueue_get_dma_premapped(), then the driver > can know whether dma unmap is needed. > > Signed-off-by: Xuan Zhuo > --- > drivers/net/virtio/main.c | 22 +- > drivers/net/virtio/virtio_net.h | 3 --