> -----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 06/21] net/virtio: remove unused queue ID field in Rx > queue > > This patch removes the queue ID field in virtnet_rx struct. > > Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com> > --- > drivers/net/virtio/virtio_rxtx.c | 1 - > drivers/net/virtio/virtio_rxtx.h | 2 -- > 2 files changed, 3 deletions(-) > > diff --git a/drivers/net/virtio/virtio_rxtx.c > b/drivers/net/virtio/virtio_rxtx.c > index 304403d46c..4f69b97f41 100644 > --- a/drivers/net/virtio/virtio_rxtx.c > +++ b/drivers/net/virtio/virtio_rxtx.c > @@ -703,7 +703,6 @@ virtio_dev_rx_queue_setup(struct rte_eth_dev *dev, > vq->vq_free_cnt = RTE_MIN(vq->vq_free_cnt, nb_desc); > > rxvq = &vq->rxq; > - rxvq->queue_id = queue_idx; > rxvq->mpool = mp; > dev->data->rx_queues[queue_idx] = rxvq; > > diff --git a/drivers/net/virtio/virtio_rxtx.h > b/drivers/net/virtio/virtio_rxtx.h > index 9bbcf32f66..a5fe3ea95c 100644 > --- a/drivers/net/virtio/virtio_rxtx.h > +++ b/drivers/net/virtio/virtio_rxtx.h > @@ -23,8 +23,6 @@ struct virtnet_rx { > uint64_t mbuf_initializer; /**< value to init mbufs. */ > struct rte_mempool *mpool; /**< mempool for mbuf allocation */ > > - uint16_t queue_id; /**< DPDK queue index. */ > - > /* Statistics */ > struct virtnet_stats stats; > > -- > 2.38.1
Reviewed-by: Chenbo Xia <chenbo....@intel.com>