]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: SF, Consider own vhca events of SF devices
authorParav Pandit <parav@nvidia.com>
Thu, 11 Mar 2021 11:51:38 +0000 (13:51 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 24 Apr 2021 07:58:59 +0000 (00:58 -0700)
commit8c6207625187e40b2280b4e3d0ace6b6ee537241
tree1f262d1537ec20c80bbeccdec93d2f236c72af94
parent6221a4de38a67d06883c674b7ce906a41487bb84
net/mlx5: SF, Consider own vhca events of SF devices

Vhca events on eswitch manager are received for all the functions on the
NIC, including for SFs of external host PF controllers.

While SF device handler is only interested in SF devices events related
to its own PF.
Hence, validate if the function belongs to self or not.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c