Re: [PATCH net-next v2 08/21] virtio_net: sq support premapped mode

2023-11-08 Thread Jason Wang
On Tue, Nov 7, 2023 at 11:12 AM 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. > > Signed-off-by: Xuan Zhuo > --- > drivers/net/virtio/main.c

Re: [PATCH net-next v2 05/21] virtio_net: add prefix virtnet to all struct inside virtio_net.h

2023-11-08 Thread Jason Wang
On Tue, Nov 7, 2023 at 11:13 AM Xuan Zhuo wrote: > > We move some structures to the header file, but these structures do not > prefixed with virtnet. This patch adds virtnet for these. > > Signed-off-by: Xuan Zhuo > --- Acked-by: Jason Wang Thanks

Re: [PATCH net-next v2 04/21] virtio_net: move core structures to virtio_net.h

2023-11-08 Thread Jason Wang
On Tue, Nov 7, 2023 at 11:13 AM Xuan Zhuo wrote: > > Move some core structures (send_queue, receive_queue, virtnet_info) > definitions and the relative structures definitions into the > virtio_net.h file. > > That will be used by the other c code files. > > Signed-off-by: Xuan Zhuo > --- Acked-b

Re: [PATCH net-next v2 5/5] virtio-net: return -EOPNOTSUPP for adaptive-tx

2023-11-08 Thread Jason Wang
On Thu, Nov 2, 2023 at 9:10 PM Heng Qi wrote: > > We do not currently support tx dim, so respond to -EOPNOTSUPP. > > Signed-off-by: Heng Qi > --- > v1->v2: > - Use -EOPNOTSUPP instead of specific implementation. > > drivers/net/virtio_net.c | 29 ++--- > 1 file changed, 2

Re: [PATCH net-next v2 4/5] virtio-net: support rx netdim

2023-11-08 Thread Jason Wang
On Thu, Nov 2, 2023 at 9:10 PM Heng Qi wrote: > > By comparing the traffic information in the complete napi processes, > let the virtio-net driver automatically adjust the coalescing > moderation parameters of each receive queue. > > Signed-off-by: Heng Qi > --- > v1->v2: > - Improved the judgmen

Re: [PATCH net-next v2 2/5] virtio-net: separate rx/tx coalescing moderation cmds

2023-11-08 Thread Jason Wang
On Thu, Nov 2, 2023 at 9:10 PM Heng Qi wrote: > > This patch separates the rx and tx global coalescing moderation > commands to support netdim switches in subsequent patches. > > Signed-off-by: Heng Qi Acked-by: Jason Wang Thanks > --- > v1->v2: > - Add 'i' definition. > > drivers/net/virtio