]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add NETIF_F_HW_TC to hw_features when HTB offload is available
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Wed, 30 Jun 2021 10:33:31 +0000 (13:33 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Jul 2021 23:10:03 +0000 (16:10 -0700)
commit802a6c512acb5c14f1f5f0b5397dccee72cf8fc3
tree7faabb33fb3fef2bd9e7d59bb4e732be9eb86655
parent2d7270f11d2a8f848e864222abd04303ef8cb6f4
net/mlx5e: Add NETIF_F_HW_TC to hw_features when HTB offload is available

If a feature flag is only present in features, but not in hw_features,
the user can't reset it. Although hw_features may contain NETIF_F_HW_TC
by the point where the driver checks whether HTB offload is supported,
this flag is controlled by another condition that may not hold. Set it
explicitly to make sure the user can disable it.

Fixes: 63f9d5b33580 ("net/mlx5e: Support HTB offload")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c