RE: [PATCH v2 10/21] net/virtio: alloc Rx SW ring only if vectorized path

2023-02-07 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, February 7, 2023 11:18 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.march...@redhat.com; epere...@redhat.com; step...@networkplumber.org > Cc: Maxime Coquelin > Subject: [PATCH v2 10/21] net/virtio: all

[PATCH v2 10/21] net/virtio: alloc Rx SW ring only if vectorized path

2023-02-07 Thread Maxime Coquelin
This patch only allocates the SW ring when vectorized datapath is used. It also moves the SW ring and fake mbuf in the virtnet_rx struct since this is Rx-only. Signed-off-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c| 88 --- drivers/net/virtio/virtio_rxt