net/mlx5e: Introduce kconfig var for TC support
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 May 2020 15:24:11 +0000 (18:24 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 May 2020 23:46:14 +0000 (16:46 -0700)
commitd956873f908cff46dd55976dbd9442a027e9d9d1
tree30d669a7df50d61aee0b34c1dc28f42d44cac118
parente2394a61d243d74ec7d0bfd4c6e25171fba54caa
net/mlx5e: Introduce kconfig var for TC support

In order to improve code maintainability and readability, introduce new
CONFIG_MLX5_CLS_ACT kconfig variable to control compilation of TC hardware
offloads implementation. This allows distinguishing between features that
require TC support (MPLSoUDP, etc.) and features that just rely on
representor functionality (rep_bond for live migration, etc.).

Modify rep_tc.h, rep_neigh.h, en_tc.h and chains.h files to provide stubs
for functions that are called from generic code.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Kconfig
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h
drivers/net/ethernet/mellanox/mlx5/core/esw/chains.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c