Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"
authorParav Pandit <parav@nvidia.com>
Sun, 17 Jan 2021 09:26:33 +0000 (11:26 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 00:22:59 +0000 (20:22 -0400)
commitde641d74fb00f5b32f054ee154e31fb037e0db88
tree95ba465e1551d62836659924475f035d35470ec3
parent9293d3fcb70583f2c786f04ca788af026b7c4c5c
Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"

This reverts commit fbdd0049d98d44914fc57d4b91f867f4996c787b.

Due to commit in fixes tag, netdevice events were received only in one net
namespace of mlx5_core_dev. Due to this when netdevice events arrive in
net namespace other than net namespace of mlx5_core_dev, they are missed.

This results in empty GID table due to RDMA device being detached from its
net device.

Hence, revert back to receive netdevice events in all net namespaces to
restore back RDMA functionality in non init_net net namespace. The
deadlock will have to be addressed in another patch.

Fixes: fbdd0049d98d ("RDMA/mlx5: Fix devlink deadlock on net namespace deletion")
Link: https://lore.kernel.org/r/20210117092633.10690-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
include/linux/mlx5/driver.h