]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4663c00f2b5565e154f8b81c060dbafa8382a978
tree6b4784ca2b15d71be87dc83ce8b19e59f7e8e7e7
parent1195d48d46bb9dc8c819826046c682abf4d85734
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