summaryrefslogtreecommitdiff
path: root/test/test/test_event_eth_rx_adapter.c
diff options
context:
space:
mode:
authorVipin Varghese <vipin.varghese@intel.com>2018-05-15 23:36:42 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-05-21 01:16:41 +0200
commit84e22d6177be2eee974a4c4978ed800cae6bf332 (patch)
treeb5ad7897eebe368dac2551d4cada269a781ef531 /test/test/test_event_eth_rx_adapter.c
parent97c228a0aa9eea904d2e443a1316abc59dce5783 (diff)
downloaddpdk-84e22d6177be2eee974a4c4978ed800cae6bf332.zip
dpdk-84e22d6177be2eee974a4c4978ed800cae6bf332.tar.gz
dpdk-84e22d6177be2eee974a4c4978ed800cae6bf332.tar.xz
test/eventdev: fix ethdev port id to 16-bit
port id in test case is update to unsigned int 16 bit, to prevent compilation failure when RTE_MAX_ETHPORTS port is set more than 255. Fixes: fc8030eb8fe9 ("test/eventdev: add tests for eth Rx adapter APIs") Cc: stable@dpdk.org Signed-off-by: Vipin Varghese <vipin.varghese@intel.com> Acked-by: Nikhil Rao <nikhil.rao@intel.com>
Diffstat (limited to 'test/test/test_event_eth_rx_adapter.c')
-rw-r--r--test/test/test_event_eth_rx_adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/test_event_eth_rx_adapter.c b/test/test/test_event_eth_rx_adapter.c
index ab55398..dee632b 100644
--- a/test/test/test_event_eth_rx_adapter.c
+++ b/test/test/test_event_eth_rx_adapter.c
@@ -107,7 +107,7 @@ port_init(uint8_t port, struct rte_mempool *mp)
static int
init_ports(int num_ports)
{
- uint8_t portid;
+ uint16_t portid;
int retval;
default_params.mp = rte_pktmbuf_pool_create("packet_pool",