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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);