diff options
author | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2018-02-06 22:17:36 +0000 |
---|---|---|
committer | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2018-02-07 17:43:40 +0000 |
commit | 5c795f7bd17608d441d4e2c7f862ad9d45685b93 (patch) | |
tree | 96947264d77354b9cb880f86333d961d414ce689 /test/gtest/test_common.cpp | |
parent | 3726dc50dd2a9873ac05847be80ca615ea4a708b (diff) |
tldk: make sure it builds/works with latest dpdk (17.11/18.02)
Change-Id: I460b88661656b64558b442c7800b4edc20ad4b56
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'test/gtest/test_common.cpp')
-rw-r--r-- | test/gtest/test_common.cpp | 7 |
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) { |