diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/gtest/test_common.cpp | 8 | ||||
-rw-r--r-- | test/gtest/test_common.h | 6 | ||||
-rw-r--r-- | test/gtest/test_tle_udp_stream_gen.h | 7 |
3 files changed, 14 insertions, 7 deletions
diff --git a/test/gtest/test_common.cpp b/test/gtest/test_common.cpp index a91c8ba..e7fa788 100644 --- a/test/gtest/test_common.cpp +++ b/test/gtest/test_common.cpp @@ -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; diff --git a/test/gtest/test_common.h b/test/gtest/test_common.h index 5b01114..d747857 100644 --- a/test/gtest/test_common.h +++ b/test/gtest/test_common.h @@ -98,9 +98,11 @@ typen_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue, __rte_unused uint16_t max_pkts, void *user_param); 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); 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); #endif /* TEST_COMMON_H_ */ diff --git a/test/gtest/test_tle_udp_stream_gen.h b/test/gtest/test_tle_udp_stream_gen.h index 8476375..855980c 100644 --- a/test/gtest/test_tle_udp_stream_gen.h +++ b/test/gtest/test_tle_udp_stream_gen.h @@ -62,7 +62,8 @@ extern struct rte_mempool *mbuf_pool; /* Dummy lookup functions, TX operations are not performed in these tests */ static int -lookup4_function(void *opaque, const struct in_addr *addr, struct tle_dest *res) +lookup4_function(void *opaque, __rte_unused uint64_t sdata, + const struct in_addr *addr, struct tle_dest *res) { struct in_addr route; struct rte_ether_hdr *eth; @@ -98,8 +99,8 @@ lookup4_function(void *opaque, const struct in_addr *addr, struct tle_dest *res) } static int -lookup6_function(void *opaque, const struct in6_addr *addr, - struct tle_dest *res) +lookup6_function(void *opaque, __rte_unused uint64_t sdata, + const struct in6_addr *addr, struct tle_dest *res) { struct rte_ether_hdr *eth; struct rte_ipv6_hdr *ip6h; |