[dpdk-dev] [PATCH v2] net/mlx5: fix match on Ethertype and CVLAN tag
matan at mellanox.com
Thu Feb 20 13:01:18 CET 2020
From: Dekel Peled <dekelp at mellanox.com>
> HW supports match on one Ethertype, the Ethertype following the last VLAN
> tag of the packet (see PRM).
> Previous patch added specific handling for packets with VLAN tag, after
> setting match on Ethertype.
> This patch moves the handling of packets with VLAN tag, to be done before
> and instead of setting match on Ethertype.
> Previous patch also added, as part of specific handling for packets with VLAN
> tag, the setting of cvlan_tag mask bit in translation of
> L3 items.
> In case of L3 tunnel there is no inner L2 header, so setting this mask bit is
> wrong and causes match failures.
> This patch adds check to make sure L2 header exists before setting cvlan_tag
> mask bit for L3 items.
> Fixes: 00f75a40576b ("net/mlx5: fix VLAN match for DV mode")
> Cc: stable at dpdk.org
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
Acked-by: Matan Azrad <matan at mellanox.com>
More information about the dev