[dpdk-dev] [PATCH 1/6] net/enic: remove obsolete code

Hyong Youb Kim hyonkim at cisco.com
Wed Sep 9 16:00:01 CEST 2020


The 'next' field in struct enic is unused. The comment in enic_cq_rq()
is out-of-date. Remove them.

Signed-off-by: Hyong Youb Kim <hyonkim at cisco.com>
Reviewed-by: John Daley <johndale at cisco.com>
---
 drivers/net/enic/enic.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index baf6b8790..26535c9aa 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -106,7 +106,6 @@ struct rte_flow {
 
 /* Per-instance private data structure */
 struct enic {
-	struct enic *next;
 	struct rte_pci_device *pdev;
 	struct vnic_enet_config config;
 	struct vnic_dev_bar bar0;
@@ -297,10 +296,6 @@ static inline unsigned int enic_vnic_rq_count(struct enic *enic)
 
 static inline unsigned int enic_cq_rq(__rte_unused struct enic *enic, unsigned int rq)
 {
-	/* Scatter rx uses two receive queues together with one
-	 * completion queue, so the completion queue number is no
-	 * longer the same as the rq number.
-	 */
 	return rq;
 }
 
-- 
2.26.2



More information about the dev mailing list