summaryrefslogtreecommitdiffstats
path: root/VNFs/UDP_Replay/main.c
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-07-14 06:22:42 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-14 06:22:42 +0000
commitd1c37540011d2ec38dc2bd620aef897f57f5b559 (patch)
treef8837b6b2632a5f7a28c53e25b012e81963e70da /VNFs/UDP_Replay/main.c
parent735b1362bf72d8bfec56e4964f43b60170144213 (diff)
parentb72cbc3b1b8bce7c35f2f2970304280fa7f32f23 (diff)
Merge "UDP_Replay: rte_hash_lookup_multi renamed to rte_hash_lookup_bulk"
Diffstat (limited to 'VNFs/UDP_Replay/main.c')
-rw-r--r--VNFs/UDP_Replay/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/VNFs/UDP_Replay/main.c b/VNFs/UDP_Replay/main.c
index a5dcf86b..5242adba 100644
--- a/VNFs/UDP_Replay/main.c
+++ b/VNFs/UDP_Replay/main.c
@@ -70,6 +70,7 @@ performance of the solution should be sufficient for testing the UDP NAT perform
#include <rte_tcp.h>
#include <rte_udp.h>
#include <rte_string_fns.h>
+#include <rte_version.h>
#include <cmdline_parse.h>
#include <cmdline_parse_etheraddr.h>
@@ -1023,8 +1024,11 @@ simple_ipv6_replay_8pkts(struct rte_mbuf *m[8], uint8_t portid, struct lcore_con
}
const void *key_array[8] = {&key[0], &key[1], &key[2], &key[3],
&key[4], &key[5], &key[6], &key[7]};
+#if RTE_VERSION < 0x100b0000
rte_hash_lookup_multi(qconf->ipv6_lookup_struct, &key_array[0], 8, ret);
-
+#else
+ rte_hash_lookup_bulk(qconf->ipv6_lookup_struct, &key_array[0], 8, ret);
+#endif
send_single_packet(m[0],portid);
send_single_packet(m[1],portid);
send_single_packet(m[2],portid);