net/mlx5: Use system_image_guid to determine bonding
authorRongwei Liu <rongweil@nvidia.com>
Tue, 12 Oct 2021 07:53:00 +0000 (10:53 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 16 Oct 2021 00:37:47 +0000 (17:37 -0700)
commit8a543184d79c83d0887c25cf202a43559ba39583
tree6b4784ca2b15d71be87dc83ce8b19e59f7e8e7e7
parent1021d0645d593ea86193c5fc371e33e5b208e14d
net/mlx5: Use system_image_guid to determine bonding

With specific NICs, the PFs may have different PCIe ids like
0001:01:00.0/1 and 0002:02:00:00/1.

For PFs with the same system_image_guid, driver should consider
them under the same physical NIC and they are legal to bond together.

If firmware doesn't support system_image_guid, set it to zero and
fallback to use PCIe ids.

Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c