Commit bc2a7b5c authored by Aya Levin's avatar Aya Levin Committed by Saeed Mahameed

net/mlx5e: Fix feature check per profile

Remove redundant space when constructing the feature's enum. Validate
against the indented enum value.

Fixes: 6c72cb05 ("net/mlx5e: Use bitmap field for profile features")
Signed-off-by: default avatarAya Levin <ayal@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 7846665d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment