diff options
author | Aya Levin <ayal@nvidia.com> | 2021-12-21 15:16:32 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-01-06 16:22:54 -0800 |
commit | bc2a7b5c6b379d0f6e685b29fe04d2f7310c693d (patch) | |
tree | 0e54a61896cd872edf9ca57d218a995857cb5768 | |
parent | 7846665d3504812acaebf920d1141851379a7f37 (diff) | |
download | linux-bc2a7b5c6b379d0f6e685b29fe04d2f7310c693d.tar.bz2 |
net/mlx5e: Fix feature check per profile
Remove redundant space when constructing the feature's enum. Validate
against the indented enum value.
Fixes: 6c72cb05d4b8 ("net/mlx5e: Use bitmap field for profile features")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index c5f959a9e14b..812e6810cb3b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -984,7 +984,7 @@ struct mlx5e_profile { }; #define mlx5e_profile_feature_cap(profile, feature) \ - ((profile)->features & (MLX5E_PROFILE_FEATURE_## feature)) + ((profile)->features & BIT(MLX5E_PROFILE_FEATURE_##feature)) void mlx5e_build_ptys2ethtool_map(void); |