net/mlx5e: Allow to match on MPLS parameters only for MPLS over UDP
authorAlaa Hleihel <alaa@nvidia.com>
Wed, 10 Mar 2021 15:01:46 +0000 (17:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Mar 2021 20:16:40 +0000 (13:16 -0700)
commit7d6c86e3ccb5ceea767df5c7a9a17cdfccd3df9a
treefedc0cce6ac395a2c992082e4d7dacc06f59dbd2
parenta07231084da2207629b42244380ae2f1e10bd9b4
net/mlx5e: Allow to match on MPLS parameters only for MPLS over UDP

Currently, we support hardware offload only for MPLS over UDP.
However, rules matching on MPLS parameters are now wrongly offloaded
for regular MPLS, without actually taking the parameters into
consideration when doing the offload.
Fix it by rejecting such unsupported rules.

Fixes: 72046a91d134 ("net/mlx5e: Allow to match on mpls parameters")
Signed-off-by: Alaa Hleihel <alaa@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c