summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2018-05-14 16:28:26 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:32:23 +0100
commit346b02d1dc87db2cb011fad17c15356908d5bbaa (patch)
tree48565ac652fac999ec3a5920f035559b04ae9c06
parentb84bcf40190e85f620920711b728fa36ce947f2b (diff)
downloaddpdk-346b02d1dc87db2cb011fad17c15356908d5bbaa.zip
dpdk-346b02d1dc87db2cb011fad17c15356908d5bbaa.tar.gz
dpdk-346b02d1dc87db2cb011fad17c15356908d5bbaa.tar.xz
net/dpaa2: change VLAN strip value to offload flag
Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs") Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
-rw-r--r--drivers/net/dpaa2/dpaa2_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c
index dc0da96..dac086d 100644
--- a/drivers/net/dpaa2/dpaa2_rxtx.c
+++ b/drivers/net/dpaa2/dpaa2_rxtx.c
@@ -560,7 +560,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
bufs[num_rx] = eth_fd_to_mbuf(fd);
bufs[num_rx]->port = dev->data->port_id;
- if (dev->data->dev_conf.rxmode.hw_vlan_strip)
+ if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
rte_vlan_strip(bufs[num_rx]);
dq_storage++;