[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>
This commit is contained in:
committed by
Michael Brown
parent
4f9fbe6c16
commit
b9de7e6eda
@@ -63,7 +63,7 @@ static void ib_sma_node_info ( struct ib_device *ibdev,
|
||||
node_info->base_version = IB_MGMT_BASE_VERSION;
|
||||
node_info->class_version = IB_SMP_CLASS_VERSION;
|
||||
node_info->node_type = IB_NODE_TYPE_HCA;
|
||||
node_info->num_ports = ib_count_ports ( ibdev );
|
||||
node_info->num_ports = ibdev->ports;
|
||||
memcpy ( &node_info->sys_guid, &ibdev->node_guid,
|
||||
sizeof ( node_info->sys_guid ) );
|
||||
memcpy ( &node_info->node_guid, &ibdev->node_guid,
|
||||
|
||||
Reference in New Issue
Block a user