net/bnxt: fix VLAN strip flags in SSE Rx
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 22 Jan 2020 00:47:33 +0000 (16:47 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:19 +0000 (09:51 +0100)
When the VLAN is stripped from the packet on receive the
driver must set the PKT_RX_VLAN_STRIPPED flag in the mbuf.
This is done correctly for normal receive in the bnxt driver
but was not being handled correctly in the new SSE code.

Fixes: bc4a000f2f53 ("net/bnxt: implement SSE vector mode")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxtx_vec_sse.c

index 22d9f9e..3145730 100644 (file)
@@ -289,7 +289,8 @@ bnxt_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
                                        (RX_PKT_CMPL_METADATA_VID_MASK |
                                        RX_PKT_CMPL_METADATA_DE |
                                        RX_PKT_CMPL_METADATA_PRI_MASK);
-                               mbuf->ol_flags |= PKT_RX_VLAN;
+                               mbuf->ol_flags |=
+                                       PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED;
                        }
 
                        bnxt_parse_csum(mbuf, rxcmp1);