]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ethdev/rte_ethdev.c
ethdev: fix storage type of latest port id
[dpdk.git] / lib / librte_ethdev / rte_ethdev.c
index b3ed82105ca283ac1638018a4de66467f305362f..cd4bfd3c6a0f9e6e2fc224665d2141e924ec97c8 100644 (file)
@@ -49,7 +49,7 @@ static int ethdev_logtype;
 
 static const char *MZ_RTE_ETH_DEV_DATA = "rte_eth_dev_data";
 struct rte_eth_dev rte_eth_devices[RTE_MAX_ETHPORTS];
-static uint8_t eth_dev_last_created_port;
+static uint16_t eth_dev_last_created_port;
 
 /* spinlock for eth device callbacks */
 static rte_spinlock_t rte_eth_dev_cb_lock = RTE_SPINLOCK_INITIALIZER;