path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
authorOlivier Matz <>2017-10-25 17:12:57 +0200
committerFerruh Yigit <>2017-10-26 02:33:01 +0200
commit380a7aab1ae2894fa598d8c51962778670996e4a (patch)
treeba207f81c83d81dba5ec12af9c3fd28c303bd6c9 /drivers/net/mlx5/mlx5_rxtx.c
parent51093e679be90a9f7431f3e0d0fe4226c10eda3d (diff)
mbuf: rename deprecated VLAN flags
PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT are deprecated for a while. As explained in [1], these flags were kept to let the applications and PMDs move to the new flag. There is also a need to support Rx vlan offload without vlan strip (at least for the ixgbe driver). This patch renames the old flags for this feature, knowing that some PMDs were using PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT to indicate that the vlan tci has been saved in the mbuf structure. It is likely that some PMDs do not set the proper flags when doing vlan offload, and it would be worth making a pass on all of them. Link: [1] Signed-off-by: Olivier Matz <> Reviewed-by: Ferruh Yigit <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 67e7e06..af0a755 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -1884,7 +1884,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
if (rxq->vlan_strip &&
(cqe->hdr_type_etc &
rte_cpu_to_be_16(MLX5_CQE_VLAN_STRIPPED))) {
- pkt->ol_flags |= PKT_RX_VLAN_PKT |
+ pkt->ol_flags |= PKT_RX_VLAN |
pkt->vlan_tci =