Skip to content

Commit efb1aa6

Browse files
shayshyigregkh
authored andcommitted
net/mlx5: Disable devlink reload for multi port slave device
[ Upstream commit d89ddaa ] Devlink reload can't be allowed on a multi port slave device, because reload of slave device doesn't take effect. The right flow is to disable devlink reload for multi port slave device. Hence, disabling it in mlx5_core probing. Fixes: 4383cfc ("net/mlx5: Add devlink reload") Signed-off-by: Shay Drory <shayd@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 64ea9e9 commit efb1aa6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,8 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *id)
13801380
dev_err(&pdev->dev, "mlx5_crdump_enable failed with error code %d\n", err);
13811381

13821382
pci_save_state(pdev);
1383-
devlink_reload_enable(devlink);
1383+
if (!mlx5_core_is_mp_slave(dev))
1384+
devlink_reload_enable(devlink);
13841385
return 0;
13851386

13861387
err_load_one:

0 commit comments

Comments
 (0)