net/e1000: fix returned number of available Rx descriptors
authorAli Volkan Atli <volkan.atli@argela.com.tr>
Wed, 27 Jul 2016 13:11:09 +0000 (16:11 +0300)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
Fixes: 0f6b7c7f7a37 ("igb: use DD bit to count RX available descriptors")

Signed-off-by: Ali Volkan Atli <volkan.atli@argela.com.tr>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/e1000/igb_rxtx.c

index a47c640..e8f9933 100644 (file)
@@ -1527,7 +1527,7 @@ eth_igb_rx_queue_count(struct rte_eth_dev *dev, uint16_t rx_queue_id)
                                desc - rxq->nb_rx_desc]);
        }
 
-       return 0;
+       return desc;
 }
 
 int