]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Lag, move lag destruction to a workqueue
authorMark Bloch <mbloch@nvidia.com>
Tue, 3 Aug 2021 23:19:57 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:25 +0000 (13:49 -0700)
commit63d4a9afbcee4167ffb0d126b23b8884b15e5837
tree8f8f2f74cbcf6061808eab2ab5a6fbf8b9bc2239
parentcac1eb2cf2e338260c5e2ffb098dfa0508ee40aa
net/mlx5: Lag, move lag destruction to a workqueue

If a netdev is removed from the lag the lag should be destroyed.
With downstream patches this might trigger a reconfiguration of
representors on a different eswitch and such we don't have the proper
locking to so from this path. Move the destruction to be done by the
workqueue.

As the destruction won't affect the netdev side it okay to do so.
The RDMA side will be reconfigured and it already coded to handle such
reconfiguration.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c