Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-07-01 Thread Xuan Zhuo
On Mon, 1 Jul 2024 11:05:33 +0800, Jason Wang wrote: > On Fri, Jun 28, 2024 at 1:44 PM Xuan Zhuo wrote: > > > > On Fri, 28 Jun 2024 10:19:37 +0800, Jason Wang wrote: > > > On Tue, Jun 18, 2024 at 3:57 PM Xuan Zhuo > > > wrote: > > > > > > > > Implement the logic of filling rq with XSK buffers.

Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-30 Thread Jason Wang
On Fri, Jun 28, 2024 at 1:44 PM Xuan Zhuo wrote: > > On Fri, 28 Jun 2024 10:19:37 +0800, Jason Wang wrote: > > On Tue, Jun 18, 2024 at 3:57 PM Xuan Zhuo > > wrote: > > > > > > Implement the logic of filling rq with XSK buffers. > > > > > > Signed-off-by: Xuan Zhuo > > > --- > > > drivers/net/

Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-27 Thread Xuan Zhuo
On Fri, 28 Jun 2024 10:19:37 +0800, Jason Wang wrote: > On Tue, Jun 18, 2024 at 3:57 PM Xuan Zhuo wrote: > > > > Implement the logic of filling rq with XSK buffers. > > > > Signed-off-by: Xuan Zhuo > > --- > > drivers/net/virtio_net.c | 68 ++-- > > 1 file ch

Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-27 Thread Jason Wang
On Tue, Jun 18, 2024 at 3:57 PM Xuan Zhuo wrote: > > Implement the logic of filling rq with XSK buffers. > > Signed-off-by: Xuan Zhuo > --- > drivers/net/virtio_net.c | 68 ++-- > 1 file changed, 66 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/vi

Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-20 Thread Xuan Zhuo
On Thu, 20 Jun 2024 12:20:44 +0200, Paolo Abeni wrote: > Hi, > > On Tue, 2024-06-18 at 15:56 +0800, Xuan Zhuo wrote: > > @@ -1032,6 +1034,53 @@ static void check_sq_full_and_disable(struct > > virtnet_info *vi, > > } > > } > > > > +static void sg_fill_dma(struct scatterlist *sg, dma_addr_t a

Re: [PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-20 Thread Paolo Abeni
Hi, On Tue, 2024-06-18 at 15:56 +0800, Xuan Zhuo wrote: > @@ -1032,6 +1034,53 @@ static void check_sq_full_and_disable(struct > virtnet_info *vi, > } > } > > +static void sg_fill_dma(struct scatterlist *sg, dma_addr_t addr, u32 len) > +{ > + sg->dma_address = addr; > + sg->length

[PATCH net-next v6 07/10] virtio_net: xsk: rx: support fill with xsk buffer

2024-06-18 Thread Xuan Zhuo
Implement the logic of filling rq with XSK buffers. Signed-off-by: Xuan Zhuo --- drivers/net/virtio_net.c | 68 ++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 2bbc715f22c6..2ac5668a