net/mlx5e: Use helpers to get headers criteria and value pointers
authorEli Britstein <elibr@mellanox.com>
Tue, 19 Mar 2019 07:04:56 +0000 (07:04 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:33 +0000 (14:10 -0700)
commit8377629e76bcdf5ba1d3f2d220eebbfd947cfe7a
tree7c535c06e3039976cb9a81b03621df3d47afb716
parent2cc1cb1d17352aaf6400774793353720be221945
net/mlx5e: Use helpers to get headers criteria and value pointers

The headers criteria and value pointers may be either of the inner
packet, if a tunnel exists, or of the outer. Simplify the code by using
helper functions to retrieve them.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c