]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Disable devlink reload for lag devices
authorShay Drory <shayd@nvidia.com>
Thu, 31 Dec 2020 13:04:08 +0000 (15:04 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Feb 2021 02:50:15 +0000 (18:50 -0800)
commit972de7fbd2466ddf224c23ec7ecde19d2e517a6e
tree554bc339f416db064b669bbae5c33ebb920ac516
parentf22fdcb993091fcb639fc3f68edf545f1fe4cc37
net/mlx5: Disable devlink reload for lag devices

Devlink reload can't be allowed on lag devices since reloading one lag
device will cause traffic on the bond to get stucked.
Users who wish to reload a lag device, need to remove the device from
the bond, and only then reload it.

Fixes: 78080f553ea3 ("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>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c