net/enic: remove obsolete code
authorHyong Youb Kim <hyonkim@cisco.com>
Wed, 9 Sep 2020 14:00:01 +0000 (07:00 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 21 Sep 2020 16:10:38 +0000 (18:10 +0200)
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@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic.h

index 9b25e6a..5f0ae39 100644 (file)
@@ -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;
@@ -296,10 +295,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;
 }