[dpdk-dev] [PATCH v2] test/eventdev: update the port id to 16 bit

Vipin Varghese vipin.varghese at intel.com
Tue May 15 20:06:42 CEST 2018


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.

Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
Acked-by: Nikhil Rao <nikhil.rao at intel.com>
---

Changes for V2:
spell check for commit message - Nikhil Rao
---
 test/test/test_event_eth_rx_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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",
-- 
2.7.4



More information about the dev mailing list