From: Ali Volkan Atli Date: Wed, 27 Jul 2016 13:11:09 +0000 (+0300) Subject: net/e1000: fix returned number of available Rx descriptors X-Git-Tag: spdx-start~5875 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9e9a5b08e73f96ea71ba3f8b492bed9e14a11e13;p=dpdk.git 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 --- 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