]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Fix peer miss rules host disabled checks
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 5 Mar 2026 14:26:31 +0000 (16:26 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Mar 2026 01:25:39 +0000 (17:25 -0800)
commit76324e4041c0efb4808702b05426d7a0a7d8df5b
tree45f9371b4f9d96ef4419aeec55d1f492e0b320e9
parent24b2795f9683e092dc22a68f487e7aaaf2ddafea
net/mlx5: Fix peer miss rules host disabled checks

The check on mlx5_esw_host_functions_enabled(esw->dev) for adding VF
peer miss rules is incorrect. These rules match traffic from peer's VFs,
so the local device's host function status is irrelevant. Remove this
check to ensure peer VF traffic is properly handled regardless of local
host configuration.

Also fix the PF peer miss rule deletion to be symmetric with the add
path, so only attempt to delete the rule if it was actually created.

Fixes: 520369ef43a8 ("net/mlx5: Support disabling host PFs")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260305142634.1813208-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c