diff options
author | Christian Iversen | 2021-01-27 00:43:51 +0100 |
---|---|---|
committer | Michael Brown | 2021-01-27 02:15:35 +0100 |
commit | b9de7e6eda04cecaff6735a60c7fe7f488fdccf1 (patch) | |
tree | 5ddb8c4da2964b5b9e2fb2e4ceb154a6d523522c /src/drivers/infiniband/golan.c | |
parent | [efi] Fix misleading debug message (diff) | |
download | ipxe-b9de7e6eda04cecaff6735a60c7fe7f488fdccf1.tar.gz ipxe-b9de7e6eda04cecaff6735a60c7fe7f488fdccf1.tar.xz ipxe-b9de7e6eda04cecaff6735a60c7fe7f488fdccf1.zip |
[infiniband] Require drivers to specify the number of ports
Require drivers to report the total number of Infiniband ports. This
is necessary to report the correct number of ports on devices with
dynamic port types.
For example, dual-port Mellanox cards configured for (eth, ib) would
be rejected by the subnet manager, because they report using "port 2,
out of 1".
Signed-off-by: Christian Iversen <ci@iversenit.dk>
Diffstat (limited to 'src/drivers/infiniband/golan.c')
-rwxr-xr-x | src/drivers/infiniband/golan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/infiniband/golan.c b/src/drivers/infiniband/golan.c index 441d3b73..2f1ab235 100755 --- a/src/drivers/infiniband/golan.c +++ b/src/drivers/infiniband/golan.c @@ -2386,6 +2386,7 @@ static int golan_probe_normal ( struct pci_device *pci ) { ibdev->op = &golan_ib_operations; ibdev->dev = &pci->dev; ibdev->port = (GOLAN_PORT_BASE + i); + ibdev->ports = golan->caps.num_ports; ib_set_drvdata( ibdev, golan ); } |