]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Disable hw-tc-offload when MLX5_CLS_ACT config is disabled
authorMaor Dickman <maord@nvidia.com>
Sun, 24 Jan 2021 15:21:25 +0000 (17:21 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 26 Jan 2021 23:38:51 +0000 (15:38 -0800)
commit75fab2f30252eabd803a7caed554798b1dfc9f88
treed6d542961ec1dd65cf2bcbf1198a8846261fde62
parentee7e4f8aceee197b7af33af3825ed5400b1edf2e
net/mlx5e: Disable hw-tc-offload when MLX5_CLS_ACT config is disabled

The cited commit introduce new CONFIG_MLX5_CLS_ACT kconfig variable
to control compilation of TC hardware offloads implementation.
When this configuration is disabled the driver is still wrongly
reports in ethtool that hw-tc-offload is supported.

Fixed by reporting hw-tc-offload is supported only when
CONFIG_MLX5_CLS_ACT is enabled.

Fixes: 29c8789e26d8 ("net/mlx5e: Introduce kconfig var for TC support")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c