]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: MPLSoUDP decap, fix check for unsupported matches
authorMaor Dickman <maord@nvidia.com>
Thu, 6 Jan 2022 12:46:24 +0000 (14:46 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:19 +0000 (16:08 -0800)
commitd70dc55e79b1297b33b2c43ffcbda74f7702f932
tree3e56bccd0d699cbe9726a92bb082d6efbc668b21
parent3b629c7eb895faf218dfbb7efcfc4143e1571f29
net/mlx5e: MPLSoUDP decap, fix check for unsupported matches

Currently offload of rule on bareudp device require tunnel key
in order to match on mpls fields and without it the mpls fields
are ignored, this is incorrect due to the fact udp tunnel doesn't
have key to match on.

Fix by returning error in case flow is matching on tunnel key.

Fixes: dcffbe80a25d ("net/mlx5e: Allow to match on mpls parameters")
Signed-off-by: Maor Dickman <maord@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_tun_mplsoudp.c