]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: Disable loopback self-test on multi-PF netdev
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 7 Nov 2024 18:35:27 +0000 (20:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 03:23:38 +0000 (19:23 -0800)
commitd1ac33934a66e8d58a52668999bf9e8f59e56c81
treea525f86d422da1084e45e4cc8e687092231ba4e0
parente99c6873229fe0482e7ceb7d5600e32d623ed9d9
net/mlx5e: Disable loopback self-test on multi-PF netdev

In Multi-PF (Socket Direct) configurations, when a loopback packet is
sent through one of the secondary devices, it will always be received
on the primary device. This causes the loopback layer to fail in
identifying the loopback packet as the devices are different.

To avoid false test failures, disable the loopback self-test in
Multi-PF configurations.

Fixes: ed29705e4ed1 ("net/mlx5: Enable SD feature")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241107183527.676877-8-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c