From 30a83d9f167545e9fe2f1085b055f9a64134269e Mon Sep 17 00:00:00 2001 From: Hyong Youb Kim Date: Tue, 19 Feb 2019 05:04:49 -0800 Subject: dpdk: do not shift PKT_RX_FDIR PKT_RX_FDIR is a bit flag, not a bit position. Change-Id: Ib31ec9257e906b045522fa7c2b515b7b0c13bb32 Signed-off-by: Hyong Youb Kim --- src/plugins/dpdk/device/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c index bd23319d5af..0998844a3ea 100644 --- a/src/plugins/dpdk/device/node.c +++ b/src/plugins/dpdk/device/node.c @@ -258,7 +258,7 @@ dpdk_process_flow_offload (dpdk_device_t * xd, dpdk_per_thread_data_t * ptd, /* TODO prefetch and quad-loop */ for (n = 0; n < n_rx_packets; n++) { - if ((ptd->flags[n] & (1 << PKT_RX_FDIR)) == 0) + if ((ptd->flags[n] & PKT_RX_FDIR) == 0) continue; fle = pool_elt_at_index (xd->flow_lookup_entries, -- cgit 1.2.3-korg