net/bonding: fix queue index types
authorDavid Marchand <david.marchand@redhat.com>
Wed, 20 Mar 2019 11:47:22 +0000 (12:47 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 21 Mar 2019 20:09:16 +0000 (21:09 +0100)
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 <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c

index ae66a70..58b6e43 100644 (file)
@@ -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++) {