]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite271fbe60c6bcf502b3d683e500be23b5a61c597
treefedc0cce6ac395a2c992082e4d7dacc06f59dbd2
parent34cd2ec5c45dd51b15d6339f9e8fbf2d6c622ec9
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: dcffbe80a25d ("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