net/mlx5: fix CVLAN tag set in IP item translation
authorDekel Peled <dekelp@mellanox.com>
Mon, 16 Mar 2020 08:57:39 +0000 (10:57 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 14:29:40 +0000 (15:29 +0100)
commit1908cab425e4206321fb3f62688f9e1f92b36f6a
treeedd228c9db1662e60b977932c88f865d0c519e72
parent1b7b9f170fcebbbd0708fab554dcb5a7badef8cf
net/mlx5: fix CVLAN tag set in IP item translation

Previous fix added, at the end of functions
flow_dv_translate_item_ipv4() and flow_dv_translate_item_ipv6(), the
setting of cvlan_tag mask.
In the case of unspecified item (item->spec == null) these functions
return, and the new code section is not reached.

This patch moves the setting of cvlan_tag mask to be done before the
check of item->spec, to make sure it is always executed.

Fixes: 797329d6c4a1 ("net/mlx5: fix match on ethertype and CVLAN tag")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c