net/mlx5: Use correct vport when restoring GUIDs
authorDaniel Jurgens <danielj@nvidia.com>
Tue, 7 Mar 2023 17:06:58 +0000 (19:06 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 10 Jun 2023 01:40:52 +0000 (18:40 -0700)
commit2ee3db806e851b9f3bfc46a1004a1ccee180b0a8
treee6b0a91c2538cce2a3386fdca281e3d5a8e50dd3
parent395ccd6eb49a12b021ac5deaa56e6b0b8f93241b
net/mlx5: Use correct vport when restoring GUIDs

Prior to enabling EC VF functionality the vport number and function ID
were always the same. That's not the case now. Use the correct vport
number to modify the HCA vport context.

Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: William Tu <witu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sriov.c