]> 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)
commit9b2c7b5c89e5f97dedae821edc8d6a398e39b46a
tree4e4110bafe5fcba51cf6b6336475422eecdddb05
parent413ba0b3a1cd1bd228671c76d1070db04307ee1a
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: a6669ad308fe ("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