net/dpaa2: add support for VLAN strip
authorHemant Agrawal <hemant.agrawal@nxp.com>
Fri, 26 May 2017 06:51:19 +0000 (12:21 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:26 +0000 (10:41 +0100)
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_rxtx.c

index 81c0c28..30125eb 100644 (file)
@@ -330,6 +330,9 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
                if (dev->data->dev_conf.rxmode.hw_vlan_strip)
                        rte_vlan_strip(bufs[num_rx]);
 
+               if (dev->data->dev_conf.rxmode.hw_vlan_strip)
+                       rte_vlan_strip(bufs[num_rx]);
+
                dq_storage++;
                num_rx++;
        }