]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, don't update lag if lag isn't supported
authorMark Bloch <mbloch@nvidia.com>
Wed, 11 Aug 2021 13:40:16 +0000 (16:40 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 7 Sep 2021 21:16:49 +0000 (14:16 -0700)
commit7a9e0ad9562fac3e8321a8370d1429e8bcbe8403
tree4e4110bafe5fcba51cf6b6336475422eecdddb05
parent4a21224e65da21dd53602e50fb8e39bfb729b606
net/mlx5: Lag, don't update lag if lag isn't supported

In NICs that don't support LAG, the LAG control structure won't be
allocated. If it wasn't allocated it means LAG doesn't exists and can be
skipped.

Fixes: 7a12ae53022f ("net/mlx5: Lag, properly lock eswitch if needed")
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c