]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Don't support encap rules with gbp option
authorGavin Li <gavinl@nvidia.com>
Tue, 27 Dec 2022 02:54:09 +0000 (04:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:30 +0000 (11:58 +0100)
commit51e304025eded717da474e67811f02ffebdd1852
tree1afcfaa242dbca76b934b0c6799e5bbfc58100ea
parent779283e9d09e5f52648ce55f363ad3f8b7bb0f37
net/mlx5e: Don't support encap rules with gbp option

[ Upstream commit 07c8a9238b6e0c36e949d9c7a614a24e37df30a4 ]

Previously, encap rules with gbp option would be offloaded by mistake but
driver does not support gbp option offload.

To fix this issue, check if the encap rule has gbp option and don't
offload the rule

Fixes: 8c057c528dec ("net: sched: allow flower to match vxlan options")
Signed-off-by: Gavin Li <gavinl@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c