RDMA/mlx5: Send events from IB driver about device affiliation state
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 21 Sep 2023 12:10:27 +0000 (15:10 +0300)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Oct 2023 08:20:59 +0000 (11:20 +0300)
commit0d293714ac32650bfb669ceadf7cc2fad8161401
tree4b1a1c0d825f782e95d06df5ee6a7fd78acb56eb
parent6581da706473073066e45b8fc4913f61c2bf6e05
RDMA/mlx5: Send events from IB driver about device affiliation state

Send blocking events from IB driver whenever the device is done being
affiliated or if it is removed from an affiliation.

This is useful since now the EN driver can register to those event and
know when a device is affiliated or not.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Link: https://lore.kernel.org/r/a7491c3e483cfd8d962f5f75b9a25f253043384a.1695296682.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h