summaryrefslogtreecommitdiff
path: root/examples/vmdq
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-10-13 21:17:00 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-10-13 21:57:49 +0200
commit47523597ff6c6ecf5e26e9bd149ab74cca5ec598 (patch)
treed1654b9f107740099486fcf92bf0f2d949be1aa7 /examples/vmdq
parentb526f0552432ec7c8ef5bd5914f90a03473e9149 (diff)
downloaddpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.zip
dpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.tar.gz
dpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.tar.xz
examples: fix port id type
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'examples/vmdq')
-rw-r--r--examples/vmdq/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
index 8949a11..0f3fa30 100644
--- a/examples/vmdq/main.c
+++ b/examples/vmdq/main.c
@@ -121,7 +121,7 @@ static const struct rte_eth_conf vmdq_conf_default = {
};
static unsigned lcore_ids[RTE_MAX_LCORE];
-static uint8_t ports[RTE_MAX_ETHPORTS];
+static uint16_t ports[RTE_MAX_ETHPORTS];
static unsigned num_ports; /**< The number of ports specified in command line */
/* array used for printing out statistics */
@@ -186,7 +186,7 @@ get_eth_conf(struct rte_eth_conf *eth_conf, uint32_t num_pools)
* coming from the mbuf_pool passed as parameter
*/
static inline int
-port_init(uint8_t port, struct rte_mempool *mbuf_pool)
+port_init(uint16_t port, struct rte_mempool *mbuf_pool)
{
struct rte_eth_dev_info dev_info;
struct rte_eth_rxconf *rxconf;
@@ -583,7 +583,7 @@ main(int argc, char *argv[])
unsigned lcore_id, core_id = 0;
int ret;
unsigned nb_ports, valid_num_ports;
- uint8_t portid;
+ uint16_t portid;
signal(SIGHUP, sighup_handler);