From 5c795f7bd17608d441d4e2c7f862ad9d45685b93 Mon Sep 17 00:00:00 2001 From: Konstantin Ananyev Date: Tue, 6 Feb 2018 22:17:36 +0000 Subject: tldk: make sure it builds/works with latest dpdk (17.11/18.02) Change-Id: I460b88661656b64558b442c7800b4edc20ad4b56 Signed-off-by: Konstantin Ananyev --- test/gtest/test_common.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/gtest/test_common.cpp') 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) { -- cgit 1.2.3-korg