net/mlx5: DR, Refactor VXLAN GPE flex parser tunnel code for SW steering
authorYevgeny Kliteynik <kliteyn@mellanox.com>
Mon, 28 Oct 2019 14:30:27 +0000 (16:30 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Nov 2019 21:18:19 +0000 (13:18 -0800)
commit6e9e286e4ad53311b51b28fdc4b952ab7d2520c4
tree71bd4f74004b64c74e7abdd9ef181d9784f09ed6
parentab118da4c10a70b8437f5c90ab77adae1835963e
net/mlx5: DR, Refactor VXLAN GPE flex parser tunnel code for SW steering

Refactor flex parser tunnel code:
 - Add definition for flex parser tunneling header for VXLAN-GPE
 - Use macros for VXLAN-GPE SW steering when building STE
 - Refactor the code to reflect that this is a VXLAN GPE
   only code and not a general flex parser code.
   This also significantly simplifies addition of more
   flex parser protocols, such as Geneve.

Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h