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)
commit326c08a02034ada6586b55860e34c0f4695f62ec
tree1f262d1537ec20c80bbeccdec93d2f236c72af94
parent7e6ccbc1878413b2a2dca717a1ae450eb19e1537
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