net/mlx5: Introduce vhca state event notifier
authorParav Pandit <parav@nvidia.com>
Sat, 12 Dec 2020 06:12:16 +0000 (22:12 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 22 Jan 2021 19:32:08 +0000 (11:32 -0800)
commitf3196bb0f14c0ffb5089c15668bda196c98d3900
tree96421d878cab6106c53c58f2bf1bb261e2269f90
parenta556dded9c23c51c82654f1ebe389cbc0bc22057
net/mlx5: Introduce vhca state event notifier

vhca state events indicates change in the state of the vhca that may
occur due to a SF allocation, deallocation or enabling/disabling the
SF HCA.

Introduce vhca state event handler which will be used by SF devlink
port manager and SF hardware id allocator in subsequent patches
to act on the event.

This enables single entity to subscribe, query and rearm the event
for a function.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
12 files changed:
drivers/net/ethernet/mellanox/mlx5/core/Kconfig
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/events.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/sf/mlx5_ifc_vhca_event.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/sf/vhca_event.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/sf/vhca_event.h [new file with mode: 0644]
include/linux/mlx5/driver.h