net/mlx5: support match on GTP flags
authorDekel Peled <dekelp@mellanox.com>
Wed, 6 May 2020 17:13:38 +0000 (20:13 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit563ac307a46b32832056d09394c74e10df29644c
tree5d45d46a4222cc5d26d05d7d5ef443c852261f10
parent776aec28fc47dbf29466555b34cd79ab9cf7a7bc
net/mlx5: support match on GTP flags

This patch adds to MLX5 PMD the support of matching on
GTP header item v_pt_rsv_flags.

This item is contained in 1 byte of the format:
-------------------------------------------
| bit   | 0 - 2   | 3  | 4   | 5 | 6 | 7  |
|-----------------------------------------|
| value | Version | PT | Res | E | S | PN |
-------------------------------------------

Matching is supported only for GTP flags E, S, PN.
Therefore values 0 to 7 are supported.

Mask must be set accordingly:
... gtp v_pt_rsv_flags is 1 v_pt_rsv_flags mask 0x07 ...

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_20_05.rst
drivers/net/mlx5/mlx5_flow_dv.c