> -----Original Message----- > From: Maxime Coquelin <maxime.coque...@redhat.com> > Sent: Wednesday, November 30, 2022 11:56 PM > To: dev@dpdk.org; Xia, Chenbo <chenbo....@intel.com>; > david.march...@redhat.com; epere...@redhat.com > Cc: Maxime Coquelin <maxime.coque...@redhat.com> > Subject: [PATCH v1 03/21] net/virtio: virtqueue headers alloc refactoring > > This patch refactors virtqueue initialization by moving > its headers allocation and deallocation in dedicated > function. > > While at it, it renames the memzone metadata and address > pointers in the virtnet_tx and virtnet_ctl structures to > remove redundant virtio_net_ prefix. > > Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com> > --- > drivers/net/virtio/virtio_cvq.c | 19 ++-- > drivers/net/virtio/virtio_cvq.h | 9 +- > drivers/net/virtio/virtio_ethdev.c | 149 ++++++++++++++++++----------- > drivers/net/virtio/virtio_rxtx.c | 12 +-- > drivers/net/virtio/virtio_rxtx.h | 12 +-- > drivers/net/virtio/virtqueue.c | 8 +- > drivers/net/virtio/virtqueue.h | 13 +-- > 7 files changed, 126 insertions(+), 96 deletions(-) > -- > 2.38.1
Reviewed-by: Chenbo Xia <chenbo....@intel.com>