]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: E-switch, Change flow rule destination checking
authorJianbo Liu <jianbol@nvidia.com>
Thu, 11 Jan 2024 01:27:47 +0000 (01:27 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 15 Mar 2024 14:48:15 +0000 (10:48 -0400)
commitc8d7228ddda79cae1895e124776a620885e9e372
treeaf744e243898c2f57053e16748971dde24ff984d
parentba888f1f5c21f19967ed24d229afcf79861f163a
net/mlx5: E-switch, Change flow rule destination checking

[ Upstream commit 85ea2c5c5ef5f24fe6e6e7028ddd90be1cb5d27e ]

The checking in the cited commit is not accurate. In the common case,
VF destination is internal, and uplink destination is external.
However, uplink destination with packet reformat is considered as
internal because firmware uses LB+hairpin to support it. Update the
checking so header rewrite rules with both internal and external
destinations are not allowed.

Fixes: e0e22d59b47a ("net/mlx5: E-switch, Add checking for flow rule destinations")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c