From: David Marchand Date: Wed, 20 Mar 2019 11:47:22 +0000 (+0100) Subject: net/bonding: fix queue index types X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=88245e7e215272203355f4a671526d193db7a595;p=dpdk.git net/bonding: fix queue index types Caught by code review, rxq and txq indexes are on 16bits. Fixes: d1d1e664c6c4 ("bonding: free queue memory when closing") Cc: stable@dpdk.org Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index ae66a70f44..58b6e4344b 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -2128,7 +2128,7 @@ out_err: static void bond_ethdev_free_queues(struct rte_eth_dev *dev) { - uint8_t i; + uint16_t i; if (dev->data->rx_queues != NULL) { for (i = 0; i < dev->data->nb_rx_queues; i++) {