net/mlx5e: Split TC add rule path for nic vs e-switch
authorRoi Dayan <roid@mellanox.com>
Tue, 15 May 2018 09:08:12 +0000 (12:08 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 17 Oct 2018 21:15:48 +0000 (14:15 -0700)
commita88780a9499a3bc845f4c8c020a006cd4c973070
tree692c47e6cd389c04270dca4cce3d052b17b17f27
parentc83954abb221718e961802136078ba04d563cf3a
net/mlx5e: Split TC add rule path for nic vs e-switch

Move to have clear separation on the code path to add nic vs e-switch
flows. While here we break the code that deals with adding offloaded
TC tool to few smaller stages, each on helper function.

Besides getting us simpler and readable code, these are pre-steps
for being able to have two HW flows serving one SW TC flow for some
e-switch use cases.

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