{\r
WvConvertPortCap(&pAttributes->PortCabilityFlags, &pPortAttr->cap);\r
pAttributes->State = pPortAttr->link_state;\r
- pAttributes->MaxMtu = 0; // TODO: missing in ib_port_attr_t\r
+ pAttributes->MaxMtu = 0x80 << pPortAttr->mtu;\r
pAttributes->ActiveMtu = 0x80 << pPortAttr->mtu;\r
pAttributes->GidTableLength = pPortAttr->num_gids;\r
pAttributes->MaxMessageSize = (UINT32) pPortAttr->max_msg_size;\r
pAttributes->SmSl = pPortAttr->sm_sl;\r
pAttributes->SubnetTimeout = pPortAttr->subnet_timeout;\r
pAttributes->InitTypeReply = pPortAttr->init_type_reply;\r
- pAttributes->ActiveWidth = pPortAttr->link_width_supported;\r
- pAttributes->ActiveSpeed = 0; // TODO: missing in ib_port_attr_t\r
- pAttributes->PhysicalState = 0; // TODO: missing in ib_port_attr_t\r
+ pAttributes->ActiveWidth = pPortAttr->active_width;\r
+ pAttributes->ActiveSpeed = pPortAttr->active_speed;\r
+ pAttributes->PhysicalState = pPortAttr->phys_state;\r
pAttributes->Reserved[0] = 0;\r
pAttributes->Reserved[1] = 0;\r
}\r
ibal_port_p->max_msg_size = mthca_port_p->max_msg_sz;\r
ibal_port_p->mtu = (uint8_t)mthca_port_p->max_mtu;\r
ibal_port_p->active_speed = mthca_port_p->active_speed;\r
+ ibal_port_p->active_width = mthca_port_p->active_width;\r
ibal_port_p->phys_state = mthca_port_p->phys_state;\r
\r
ibal_port_p->subnet_timeout = mthca_port_p->subnet_timeout;\r
ibal_port_p->max_msg_size = mthca_port_p->max_msg_sz;\r
ibal_port_p->mtu = (uint8_t)mthca_port_p->max_mtu;\r
ibal_port_p->active_speed = mthca_port_p->active_speed;\r
+ ibal_port_p->active_width = mthca_port_p->active_width;\r
ibal_port_p->phys_state = mthca_port_p->phys_state;\r
\r
ibal_port_p->subnet_timeout = mthca_port_p->subnet_timeout;\r
ib_net16_t lid;\r
uint8_t lmc;\r
\r
- /*\r
- * LinkWidthSupported as defined in PortInfo. Required to calculate\r
- * inter-packet delay (a.k.a. static rate).\r
- */\r
- uint8_t link_width_supported;\r
+ uint8_t active_width;\r
\r
uint16_t max_vls;\r
\r