From: Shreyansh Jain Date: Mon, 14 May 2018 10:58:26 +0000 (+0530) Subject: net/dpaa2: change VLAN strip value to offload flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=346b02d1dc87db2cb011fad17c15356908d5bbaa;p=dpdk.git net/dpaa2: change VLAN strip value to offload flag Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs") Signed-off-by: Shreyansh Jain --- diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index dc0da96174..dac086d614 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++;