net/mlx5: fix match on empty VLAN item in DV mode
authorDekel Peled <dekelp@mellanox.com>
Tue, 5 May 2020 12:57:54 +0000 (15:57 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit92818d839e8eb0ce479db826f00aa6d62384fc92
treeeba8a6fbcc9be3b64f4a2e8f85de109d6db80262
parent25cc7b9a1103efdafcf0f66aed97c5147e6d352b
net/mlx5: fix match on empty VLAN item in DV mode

In existing implementation, using wild card VLAN item is not allowed.
A VLAN item in flow pattern must include VLAN ID (vid) value.
This obligation contradict the flow API specification [1].

This patch updates the VLAN item validation and translation, to allow
wild card VLAN item, without VLAN ID value.
User guide and release notes are updated accordingly.

[1]
commit 40513808b165 ("doc: refine ethernet and VLAN flow rule items")

Fixes: 00f75a40576b ("net/mlx5: fix VLAN match for DV mode")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_20_05.rst
drivers/net/mlx5/mlx5_flow_dv.c