summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorAnand B Jyoti <anand.b.jyoti@intel.com>2017-06-05 05:07:44 +0530
committerAnand B Jyoti <anand.b.jyoti@intel.com>2017-06-27 08:59:32 +0530
commitb72cbc3b1b8bce7c35f2f2970304280fa7f32f23 (patch)
treec8a18b0c452ed7ef6dc28543e9a73e825f5ccda3 /VNFs
parent56400cedab3a066b10401f676a8ee86c2463ff53 (diff)
UDP_Replay: rte_hash_lookup_multi renamed to rte_hash_lookup_bulk
JIRA: SAMPLEVNF-20 The function name rte_hash_lookup_multi() is changed to rte_hash_lookup_bulk() in DPDK version 16.11 and onwards. This fix supports DPDK16.04, 16.11 and onwards and required for DPDK17.05 migration. Change-Id: I01f2145919768b5146116e67d7f349a5b039251c Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
Diffstat (limited to 'VNFs')
-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);