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.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/gtest/test_common.cpp b/test/gtest/test_common.cpp
index a91c8ba..74e535f 100644
--- a/test/gtest/test_common.cpp
+++ b/test/gtest/test_common.cpp
@@ -27,7 +27,7 @@ port_init(dpdk_port_t port, struct rte_mempool *mbuf_pool)
socket_id = rte_eth_dev_socket_id(port);
memset(&port_conf, 0, sizeof(struct rte_eth_conf));
- port_conf.rxmode.max_rx_pkt_len = RTE_ETHER_MAX_LEN;
+ port_conf.rxmode.mtu = RTE_ETHER_MAX_LEN;
/* Configure the Ethernet device. */
retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf);
@@ -255,18 +255,22 @@ typen_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue,
}
int
-dummy_lookup4(void *opaque, const struct in_addr *addr, struct tle_dest *res)
+dummy_lookup4(void *opaque, uint64_t sdata, const struct in_addr *addr,
+ struct tle_dest *res)
{
RTE_SET_USED(opaque);
+ RTE_SET_USED(sdata);
RTE_SET_USED(addr);
RTE_SET_USED(res);
return -ENOENT;
}
int
-dummy_lookup6(void *opaque, const struct in6_addr *addr, struct tle_dest *res)
+dummy_lookup6(void *opaque, uint64_t sdata, const struct in6_addr *addr,
+ struct tle_dest *res)
{
RTE_SET_USED(opaque);
+ RTE_SET_USED(sdata);
RTE_SET_USED(addr);
RTE_SET_USED(res);
return -ENOENT;