summaryrefslogtreecommitdiff
path: root/drivers/net/fm10k/fm10k_rxtx.c
diff options
context:
space:
mode:
authorXiao Wang <xiao.w.wang@intel.com>2019-03-27 13:09:03 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commitae843c69aa55d25b1c0ef7984501b2356ed5fe88 (patch)
tree79f7786da54f25f6b8642af9f231a28e89288917 /drivers/net/fm10k/fm10k_rxtx.c
parent493779087466f788ae1b72e137718b23b944aedb (diff)
downloaddpdk-next-eventdev-ae843c69aa55d25b1c0ef7984501b2356ed5fe88.zip
dpdk-next-eventdev-ae843c69aa55d25b1c0ef7984501b2356ed5fe88.tar.gz
dpdk-next-eventdev-ae843c69aa55d25b1c0ef7984501b2356ed5fe88.tar.xz
net/fm10k: fix VLAN strip offload flag
Since the VLAN header is stripped from mbuf data, PKT_RX_VLAN_STRIPPED should be set in offload flag. Fixes: 6b59a3bc82b1 ("fm10k: fix VLAN in Rx mbuf") Fixes: 7092be8437bd ("fm10k: add vector Rx") Cc: stable@dpdk.org Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Diffstat (limited to 'drivers/net/fm10k/fm10k_rxtx.c')
-rw-r--r--drivers/net/fm10k/fm10k_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fm10k/fm10k_rxtx.c b/drivers/net/fm10k/fm10k_rxtx.c
index 1d0f09d..fb02e11 100644
--- a/drivers/net/fm10k/fm10k_rxtx.c
+++ b/drivers/net/fm10k/fm10k_rxtx.c
@@ -134,7 +134,7 @@ fm10k_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
* So, always PKT_RX_VLAN flag is set and vlan_tci
* is valid for each RX packet's mbuf.
*/
- mbuf->ol_flags |= PKT_RX_VLAN;
+ mbuf->ol_flags |= PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED;
mbuf->vlan_tci = desc.w.vlan;
/**
* mbuf->vlan_tci_outer is an idle field in fm10k driver,
@@ -295,7 +295,7 @@ fm10k_recv_scattered_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
* So, always PKT_RX_VLAN flag is set and vlan_tci
* is valid for each RX packet's mbuf.
*/
- first_seg->ol_flags |= PKT_RX_VLAN;
+ first_seg->ol_flags |= PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED;
first_seg->vlan_tci = desc.w.vlan;
/**
* mbuf->vlan_tci_outer is an idle field in fm10k driver,