67 if ( (
rc = local_mad ( ibdev,
mad ) ) != 0 )
88 local_mad,
mad ) ) != 0 ) {
89 DBGC ( ibdev,
"IBDEV %s could not get node info: %s\n",
112 DBGC ( ibdev,
"IBDEV %s could not get port info: %s\n",
134 local_mad,
mad ) ) != 0 ) {
135 DBGC ( ibdev,
"IBDEV %s could not get GUID info: %s\n",
157 local_mad,
mad ) ) != 0 ) {
158 DBGC ( ibdev,
"IBDEV %s could not get pkey table: %s\n",
struct ib_node_info node_info
#define IB_MGMT_METHOD_GET
struct arbelprm_rc_send_wqe rc
char name[IBDEV_NAME_LEN]
Name of this Infiniband device.
union ib_gid gid
Port GID (comprising GID prefix and port GUID)
uint8_t link_width_enabled
#define IB_SMP_ATTR_NODE_INFO
uint8_t link_width_active
int(* ib_local_mad_t)(struct ib_device *ibdev, union ib_mad *mad)
union ib_smp_data smp_data
void ib_link_state_changed(struct ib_device *ibdev)
Notify of Infiniband link state change.
uint8_t link_speed_enabled
Link speed enabled.
static int ib_smc_get_pkey_table(struct ib_device *ibdev, ib_local_mad_t local_mad, union ib_mad *mad)
Get partition key table.
static int ib_smc_mad(struct ib_device *ibdev, uint16_t attr_id, uint32_t attr_mod, ib_local_mad_t local_mad, union ib_mad *mad)
Issue local MAD.
#define IB_MGMT_CLASS_SUBN_LID_ROUTED
uint8_t link_width_enabled
Link width enabled.
uint8_t link_speed_active__link_speed_enabled
struct ib_port_info port_info
uint8_t link_width_supported
Link width supported.
struct ib_port_info port_info
void * memcpy(void *dest, const void *src, size_t len) __nonnull
int ib_smc_init(struct ib_device *ibdev, ib_local_mad_t local_mad)
Initialise Infiniband parameters using SMC.
uint8_t link_speed_supported__port_state
A Node Information attribute.
uint16_t sm_lid
Subnet manager LID.
uint8_t sm_sl
Subnet manager SL.
#define IB_GID_ARGS(gid)
Infiniband Global Identifier debug message arguments.
unsigned int port
Port number.
char * strerror(int errno)
Retrieve string representation of error number.
#define IB_SMP_ATTR_GUID_INFO
struct ib_node_info node_info
uint8_t neighbour_mtu__mastersm_sl
struct ib_pkey_table pkey_table
union ib_guid node_guid
Node GUID.
#define IB_SMP_ATTR_PKEY_TABLE
int ib_smc_update(struct ib_device *ibdev, ib_local_mad_t local_mad)
Update Infiniband parameters using SMC.
static int ib_smc_get_port_info(struct ib_device *ibdev, ib_local_mad_t local_mad, union ib_mad *mad)
Get port information.
uint8_t link_width_active
Link width active.
#define IB_SMP_ATTR_PORT_INFO
uint8_t link_width_supported
uint8_t link_speed_active
Link speed active.
struct ib_guid_info guid_info
#define IB_GID_FMT
Infiniband Global Identifier debug message format.
uint8_t port_state
Port state.
static int ib_smc_get_node_info(struct ib_device *ibdev, ib_local_mad_t local_mad, union ib_mad *mad)
Get node information.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define IB_MGMT_BASE_VERSION
uint8_t link_speed_supported
Link speed supported.
struct ib_pkey_table pkey_table
uint16_t pkey
Partition key.
static int ib_smc_get(struct ib_device *ibdev, ib_local_mad_t local_mad)
Get Infiniband parameters using SMC.
Infiniband Subnet Management Client.
A Partition Key Table attribute.
A GUID Information attribute.
static int ib_smc_get_guid_info(struct ib_device *ibdev, ib_local_mad_t local_mad, union ib_mad *mad)
Get GUID information.
A Port Information attribute.
void * memset(void *dest, int character, size_t len) __nonnull
struct ib_guid_info guid_info