Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Mon, 26 Feb 2024 07:01:11 -0500, "Michael S. Tsirkin" wrote: > On Mon, Feb 26, 2024 at 07:00:09AM -0500, Michael S. Tsirkin wrote: > > On Mon, Feb 26, 2024 at 07:41:20PM +0800, Xuan Zhuo wrote: > > > On Mon, 26 Feb 2024 06:39:51 -0500, "Michael S. Tsirkin" > > > wrote: > > > > On Mon, Feb 26

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Mon, 26 Feb 2024 06:39:51 -0500, "Michael S. Tsirkin" wrote: > On Mon, Feb 26, 2024 at 05:24:11PM +0800, Xuan Zhuo wrote: > > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > > wrote: > > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > > If the xsk is enabling, t

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 08:06:23PM +0800, Xuan Zhuo wrote: > On Mon, 26 Feb 2024 06:57:17 -0500, "Michael S. Tsirkin" > wrote: > > On Mon, Feb 26, 2024 at 07:39:09PM +0800, Xuan Zhuo wrote: > > > On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" > > > wrote: > > > > On Mon, Feb 26, 2024

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Mon, 26 Feb 2024 06:57:17 -0500, "Michael S. Tsirkin" wrote: > On Mon, Feb 26, 2024 at 07:39:09PM +0800, Xuan Zhuo wrote: > > On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" > > wrote: > > > On Mon, Feb 26, 2024 at 07:33:29PM +0800, Xuan Zhuo wrote: > > > > > what is dma_map_direct?

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 07:00:09AM -0500, Michael S. Tsirkin wrote: > On Mon, Feb 26, 2024 at 07:41:20PM +0800, Xuan Zhuo wrote: > > On Mon, 26 Feb 2024 06:39:51 -0500, "Michael S. Tsirkin" > > wrote: > > > On Mon, Feb 26, 2024 at 05:24:11PM +0800, Xuan Zhuo wrote: > > > > On Sun, 25 Feb 2024 03:

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 07:41:20PM +0800, Xuan Zhuo wrote: > On Mon, 26 Feb 2024 06:39:51 -0500, "Michael S. Tsirkin" > wrote: > > On Mon, Feb 26, 2024 at 05:24:11PM +0800, Xuan Zhuo wrote: > > > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > > > wrote: > > > > On Fri, Feb 23, 2024

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 07:39:09PM +0800, Xuan Zhuo wrote: > On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" > wrote: > > On Mon, Feb 26, 2024 at 07:33:29PM +0800, Xuan Zhuo wrote: > > > > what is dma_map_direct? can't find it in the tree. > > > > > > YES. > > > > > > > > > diff --git a/

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" wrote: > On Mon, Feb 26, 2024 at 07:33:29PM +0800, Xuan Zhuo wrote: > > > what is dma_map_direct? can't find it in the tree. > > > > YES. > > > > > > diff --git a/kernel/dma/mapping.c b/kernel/dma/mapping.c > > index 58db8fd70471..5a8f7a927

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 05:24:11PM +0800, Xuan Zhuo wrote: > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > wrote: > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > If the xsk is enabling, the xsk tx will share the send queue. > > > But the xsk requires that the sen

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 03:44:12PM +0800, Xuan Zhuo wrote: > On Mon, 26 Feb 2024 14:11:01 +0800, Xuan Zhuo > wrote: > > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > > wrote: > > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > > If the xsk is enabling, the xsk tx

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 07:33:29PM +0800, Xuan Zhuo wrote: > > what is dma_map_direct? can't find it in the tree. > > YES. > > > diff --git a/kernel/dma/mapping.c b/kernel/dma/mapping.c > index 58db8fd70471..5a8f7a927aa1 100644 > --- a/kernel/dma/mapping.c > +++ b/kernel/dma/mapping.c > @@ -144,

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Mon, 26 Feb 2024 06:31:49 -0500, "Michael S. Tsirkin" wrote: > On Mon, Feb 26, 2024 at 07:20:40PM +0800, Xuan Zhuo wrote: > > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > > wrote: > > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > > If the xsk is enabling, t

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Michael S. Tsirkin
On Mon, Feb 26, 2024 at 07:20:40PM +0800, Xuan Zhuo wrote: > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > wrote: > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > If the xsk is enabling, the xsk tx will share the send queue. > > > But the xsk requires that the sen

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" wrote: > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > If the xsk is enabling, the xsk tx will share the send queue. > > But the xsk requires that the send queue use the premapped mode. > > So the send queue must support pr

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-26 Thread Xuan Zhuo
On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" wrote: > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > If the xsk is enabling, the xsk tx will share the send queue. > > But the xsk requires that the send queue use the premapped mode. > > So the send queue must support pr

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-25 Thread Xuan Zhuo
On Mon, 26 Feb 2024 14:11:01 +0800, Xuan Zhuo wrote: > On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" > wrote: > > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > > If the xsk is enabling, the xsk tx will share the send queue. > > > But the xsk requires that the send qu

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-25 Thread Xuan Zhuo
On Sun, 25 Feb 2024 03:38:48 -0500, "Michael S. Tsirkin" wrote: > On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > > If the xsk is enabling, the xsk tx will share the send queue. > > But the xsk requires that the send queue use the premapped mode. > > So the send queue must support pr

Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-25 Thread Michael S. Tsirkin
On Fri, Feb 23, 2024 at 04:27:26PM +0800, Xuan Zhuo wrote: > If the xsk is enabling, the xsk tx will share the send queue. > But the xsk requires that the send queue use the premapped mode. > So the send queue must support premapped mode. > > cmd: > sh samples/pktgen/pktgen_sample01_simple.sh

[PATCH vhost v2 19/19] virtio_net: sq support premapped mode

2024-02-23 Thread Xuan Zhuo
If the xsk is enabling, the xsk tx will share the send queue. But the xsk requires that the send queue use the premapped mode. So the send queue must support premapped mode. cmd: sh samples/pktgen/pktgen_sample01_simple.sh -i eth0 \ -s 16 -d 10.0.0.128 -m 00:16:3e:2c:c8:2e -n 0 -p 100