aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorAya Levin <ayal@nvidia.com>2021-12-21 15:16:32 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-01-06 16:22:54 -0800
commitbc2a7b5c6b379d0f6e685b29fe04d2f7310c693d (patch)
tree0e54a61896cd872edf9ca57d218a995857cb5768 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5e: Unblock setting vid 0 for VF in case PF isn't eswitch manager (diff)
downloadlinux-dev-bc2a7b5c6b379d0f6e685b29fe04d2f7310c693d.tar.xz
linux-dev-bc2a7b5c6b379d0f6e685b29fe04d2f7310c693d.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h2
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);