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)
commitfdc18e4e4bded2a08638cdcd22dc087a64b9ddad
tree3e56bccd0d699cbe9726a92bb082d6efbc668b21
parentc63741b426e11062631b013c3396f5452bbc0034
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: 72046a91d134 ("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