From 9e9a5b08e73f96ea71ba3f8b492bed9e14a11e13 Mon Sep 17 00:00:00 2001 From: Ali Volkan Atli Date: Wed, 27 Jul 2016 16:11:09 +0300 Subject: [PATCH] net/e1000: fix returned number of available Rx descriptors Fixes: 0f6b7c7f7a37 ("igb: use DD bit to count RX available descriptors") Signed-off-by: Ali Volkan Atli Acked-by: Ferruh Yigit --- drivers/net/e1000/igb_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index a47c640a64..e8f9933c74 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -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 -- 2.20.1