summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/handle_lb_qinq.c
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-01-16 12:51:27 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-16 12:51:27 +0000
commitdeab1ee8197298bd7cf30d259a28206841d59383 (patch)
tree46a480248b2ba495991feaee540081e5d7f1b6cd /VNFs/DPPD-PROX/handle_lb_qinq.c
parent0249d9c01370221b724d794a3d048b01a9dd325b (diff)
parent972dac6999c939a3b1f70d69f81082d8cabd04c7 (diff)
Merge "Add support for DPDK 17.11"
Diffstat (limited to 'VNFs/DPPD-PROX/handle_lb_qinq.c')
-rw-r--r--VNFs/DPPD-PROX/handle_lb_qinq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/handle_lb_qinq.c b/VNFs/DPPD-PROX/handle_lb_qinq.c
index d58703c5..18ff7df4 100644
--- a/VNFs/DPPD-PROX/handle_lb_qinq.c
+++ b/VNFs/DPPD-PROX/handle_lb_qinq.c
@@ -20,6 +20,7 @@
#include <rte_ip.h>
#include <rte_byteorder.h>
#include <rte_version.h>
+#include <rte_hash_crc.h>
#include "prox_malloc.h"
#include "task_base.h"
@@ -279,10 +280,10 @@ static inline uint8_t get_worker(struct task_lb_qinq *task, struct cpe_packet *p
uint64_t qinq_net = packet->qd.qinq;
qinq_net = qinq_net & 0xFF0F0000FF0F0000; // Mask Proto and QoS bits
if (task->bit_mask != 0xff) {
- worker = hash_crc32(&qinq_net,8,0) & task->bit_mask;
+ worker = rte_hash_crc(&qinq_net,8,0) & task->bit_mask;
}
else {
- worker = hash_crc32(&qinq_net,8,0) % task->nb_worker_threads;
+ worker = rte_hash_crc(&qinq_net,8,0) % task->nb_worker_threads;
}
plogx_dbg("Sending packet svlan=%x, cvlan=%x, pseudo_qinq=%lx to worker %d\n", rte_bswap16(0xFF0F & packet->qp.qinq_hdr.svlan.vlan_tci), rte_bswap16(0xFF0F & packet->qp.qinq_hdr.cvlan.vlan_tci), qinq_net, worker);
} else if (((struct task_base *)task)->flags & BASE_FLAG_LUT_QINQ_RSS){