aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest/test_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/gtest/test_common.cpp')
-rw-r--r--test/gtest/test_common.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/gtest/test_common.cpp b/test/gtest/test_common.cpp
index 0bdcebc..65e3a51 100644
--- a/test/gtest/test_common.cpp
+++ b/test/gtest/test_common.cpp
@@ -16,7 +16,7 @@
#include "test_common.h"
int
-port_init(uint8_t port, struct rte_mempool *mbuf_pool)
+port_init(dpdk_port_t port, struct rte_mempool *mbuf_pool)
{
struct rte_eth_conf port_conf;
const uint16_t rx_rings = 1, tx_rings = 1;
@@ -24,9 +24,6 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool)
int retval;
int socket_id;
- if (port >= rte_eth_dev_count())
- return -1;
-
socket_id = rte_eth_dev_socket_id(port);
memset(&port_conf, 0, sizeof(struct rte_eth_conf));
@@ -243,7 +240,7 @@ fill_eth_hdr_len(struct rte_mbuf *m)
* generic, assumes HW doesn't recognise any packet type.
*/
uint16_t
-typen_rx_callback(uint8_t port, __rte_unused uint16_t queue,
+typen_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue,
struct rte_mbuf *pkt[], uint16_t nb_pkts,
__rte_unused uint16_t max_pkts, void *user_param)
{