summaryrefslogtreecommitdiff
path: root/test/test-pipeline
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-10-13 21:16:59 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-10-13 21:57:48 +0200
commitb526f0552432ec7c8ef5bd5914f90a03473e9149 (patch)
treeb49b2c8a07c16e662c71ddd52b5467a3736fb55e /test/test-pipeline
parentf14a210a65fef7a32b784857563a064608ecbbab (diff)
downloaddpdk-b526f0552432ec7c8ef5bd5914f90a03473e9149.zip
dpdk-b526f0552432ec7c8ef5bd5914f90a03473e9149.tar.gz
dpdk-b526f0552432ec7c8ef5bd5914f90a03473e9149.tar.xz
test: fix port id type
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'test/test-pipeline')
-rw-r--r--test/test-pipeline/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-pipeline/init.c b/test/test-pipeline/init.c
index 1457c78..b1f8e93 100644
--- a/test/test-pipeline/init.c
+++ b/test/test-pipeline/init.c
@@ -194,9 +194,9 @@ app_ports_check_link(void)
for (i = 0; i < app.n_ports; i++) {
struct rte_eth_link link;
- uint8_t port;
+ uint16_t port;
- port = (uint8_t) app.ports[i];
+ port = app.ports[i];
memset(&link, 0, sizeof(link));
rte_eth_link_get_nowait(port, &link);
RTE_LOG(INFO, USER1, "Port %u (%u Gbps) %s\n",
@@ -219,10 +219,10 @@ app_init_ports(void)
/* Init NIC ports, then start the ports */
for (i = 0; i < app.n_ports; i++) {
- uint8_t port;
+ uint16_t port;
int ret;
- port = (uint8_t) app.ports[i];
+ port = app.ports[i];
RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
/* Init port */