34 #define IB_SMP_CLASS_VERSION 1 40 #define IB_SMP_STATUS_D_INBOUND 0x8000 43 #define IB_SMP_ATTR_NOTICE 0x0002 44 #define IB_SMP_ATTR_NODE_DESC 0x0010 45 #define IB_SMP_ATTR_NODE_INFO 0x0011 46 #define IB_SMP_ATTR_SWITCH_INFO 0x0012 47 #define IB_SMP_ATTR_GUID_INFO 0x0014 48 #define IB_SMP_ATTR_PORT_INFO 0x0015 49 #define IB_SMP_ATTR_PKEY_TABLE 0x0016 50 #define IB_SMP_ATTR_SL_TO_VL_TABLE 0x0017 51 #define IB_SMP_ATTR_VL_ARB_TABLE 0x0018 52 #define IB_SMP_ATTR_LINEAR_FORWARD_TABLE 0x0019 53 #define IB_SMP_ATTR_RANDOM_FORWARD_TABLE 0x001A 54 #define IB_SMP_ATTR_MCAST_FORWARD_TABLE 0x001B 55 #define IB_SMP_ATTR_SM_INFO 0x0020 56 #define IB_SMP_ATTR_VENDOR_DIAG 0x0030 57 #define IB_SMP_ATTR_LED_INFO 0x0031 58 #define IB_SMP_ATTR_VENDOR_MASK 0xFF00 88 #define IB_NODE_TYPE_HCA 0x01 89 #define IB_NODE_TYPE_SWITCH 0x02 90 #define IB_NODE_TYPE_ROUTER 0x03 139 #define IB_LINK_WIDTH_1X 0x01 140 #define IB_LINK_WIDTH_4X 0x02 141 #define IB_LINK_WIDTH_8X 0x04 142 #define IB_LINK_WIDTH_12X 0x08 144 #define IB_LINK_SPEED_SDR 0x01 145 #define IB_LINK_SPEED_DDR 0x02 146 #define IB_LINK_SPEED_QDR 0x04 147 #define IB_LINK_SPEED_FDR10 0x08 148 #define IB_LINK_SPEED_FDR 0x10 149 #define IB_LINK_SPEED_EDR 0x20 151 #define IB_PORT_STATE_DOWN 0x01 152 #define IB_PORT_STATE_INIT 0x02 153 #define IB_PORT_STATE_ARMED 0x03 154 #define IB_PORT_STATE_ACTIVE 0x04 156 #define IB_PORT_PHYS_STATE_SLEEP 0x01 157 #define IB_PORT_PHYS_STATE_POLLING 0x02 159 #define IB_MTU_256 0x01 160 #define IB_MTU_512 0x02 161 #define IB_MTU_1024 0x03 162 #define IB_MTU_2048 0x04 163 #define IB_MTU_4096 0x05 166 #define IB_VL_0_1 0x02 167 #define IB_VL_0_3 0x03 168 #define IB_VL_0_7 0x04 169 #define IB_VL_0_14 0x05 207 #define IB_SA_CLASS_VERSION 2 209 #define IB_SA_METHOD_DELETE_RESP 0x95 222 #define IB_SA_ATTR_SERVICE_REC 0x31 223 #define IB_SA_ATTR_PATH_REC 0x35 224 #define IB_SA_ATTR_MC_MEMBER_REC 0x38 240 #define IB_SA_SERVICE_REC_NAME (1<<6) 258 #define IB_SA_PATH_REC_DGID (1<<2) 259 #define IB_SA_PATH_REC_SGID (1<<3) 278 #define IB_SA_MCMEMBER_REC_MGID (1<<0) 279 #define IB_SA_MCMEMBER_REC_PORT_GID (1<<1) 280 #define IB_SA_MCMEMBER_REC_QKEY (1<<2) 281 #define IB_SA_MCMEMBER_REC_MLID (1<<3) 282 #define IB_SA_MCMEMBER_REC_MTU_SELECTOR (1<<4) 283 #define IB_SA_MCMEMBER_REC_MTU (1<<5) 284 #define IB_SA_MCMEMBER_REC_TRAFFIC_CLASS (1<<6) 285 #define IB_SA_MCMEMBER_REC_PKEY (1<<7) 286 #define IB_SA_MCMEMBER_REC_RATE_SELECTOR (1<<8) 287 #define IB_SA_MCMEMBER_REC_RATE (1<<9) 288 #define IB_SA_MCMEMBER_REC_PACKET_LIFE_TIME_SELECTOR (1<<10) 289 #define IB_SA_MCMEMBER_REC_PACKET_LIFE_TIME (1<<11) 290 #define IB_SA_MCMEMBER_REC_SL (1<<12) 291 #define IB_SA_MCMEMBER_REC_FLOW_LABEL (1<<13) 292 #define IB_SA_MCMEMBER_REC_HOP_LIMIT (1<<14) 293 #define IB_SA_MCMEMBER_REC_SCOPE (1<<15) 294 #define IB_SA_MCMEMBER_REC_JOIN_STATE (1<<16) 295 #define IB_SA_MCMEMBER_REC_PROXY_JOIN (1<<17) 311 #define IB_CM_CLASS_VERSION 2 314 #define IB_CM_ATTR_CLASS_PORT_INFO 0x0001 315 #define IB_CM_ATTR_CONNECT_REQUEST 0x0010 316 #define IB_CM_ATTR_MSG_RCPT_ACK 0x0011 317 #define IB_CM_ATTR_CONNECT_REJECT 0x0012 318 #define IB_CM_ATTR_CONNECT_REPLY 0x0013 319 #define IB_CM_ATTR_READY_TO_USE 0x0014 320 #define IB_CM_ATTR_DISCONNECT_REQUEST 0x0015 321 #define IB_CM_ATTR_DISCONNECT_REPLY 0x0016 322 #define IB_CM_ATTR_SERVICE_ID_RES_REQ 0x0016 323 #define IB_CM_ATTR_SERVICE_ID_RES_REQ_RESP 0x0018 324 #define IB_CM_ATTR_LOAD_ALTERNATE_PATH 0x0019 325 #define IB_CM_ATTR_ALTERNATE_PATH_RESPONSE 0x001a 401 #define IB_CM_TRANSPORT_RC 0 402 #define IB_CM_TRANSPORT_UC 1 403 #define IB_CM_TRANSPORT_RD 2 427 #define IB_CM_REJECT_BAD_SERVICE_ID 8 428 #define IB_CM_REJECT_STALE_CONN 10 429 #define IB_CM_REJECT_CONSUMER 28 552 #define IB_MGMT_BASE_VERSION 1 555 #define IB_MGMT_CLASS_SUBN_LID_ROUTED 0x01 556 #define IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE 0x81 557 #define IB_MGMT_CLASS_SUBN_ADM 0x03 558 #define IB_MGMT_CLASS_PERF_MGMT 0x04 559 #define IB_MGMT_CLASS_BM 0x05 560 #define IB_MGMT_CLASS_DEVICE_MGMT 0x06 561 #define IB_MGMT_CLASS_CM 0x07 562 #define IB_MGMT_CLASS_SNMP 0x08 563 #define IB_MGMT_CLASS_VENDOR_RANGE2_START 0x30 564 #define IB_MGMT_CLASS_VENDOR_RANGE2_END 0x4f 566 #define IB_MGMT_CLASS_MASK 0x7f 569 #define IB_MGMT_METHOD_GET 0x01 570 #define IB_MGMT_METHOD_SET 0x02 571 #define IB_MGMT_METHOD_GET_RESP 0x81 572 #define IB_MGMT_METHOD_SEND 0x03 573 #define IB_MGMT_METHOD_TRAP 0x05 574 #define IB_MGMT_METHOD_REPORT 0x06 575 #define IB_MGMT_METHOD_REPORT_RESP 0x86 576 #define IB_MGMT_METHOD_TRAP_REPRESS 0x07 577 #define IB_MGMT_METHOD_DELETE 0x15 580 #define IB_MGMT_STATUS_OK 0x0000 581 #define IB_MGMT_STATUS_BAD_VERSION 0x0001 582 #define IB_MGMT_STATUS_UNSUPPORTED_METHOD 0x0002 583 #define IB_MGMT_STATUS_UNSUPPORTED_METHOD_ATTR 0x0003 584 #define IB_MGMT_STATUS_INVALID_VALUE 0x0004 uint16_t pkey
Partition key.
uint32_t starting_psn__local_timeout__retry_count
Starting PSN, local CM response timeout and retry count.
uint16_t remote_lid
Remote port LID.
struct ib_node_info node_info
A communication management connection reply.
uint32_t local_eecn
Local EECN.
uint32_t flow_label__rate
Flow label and rate.
struct ib_mad_hdr mad_hdr
uint16_t reason
Rejection reason.
uint8_t scope__join_state
uint32_t remote_id
Remote communication ID.
uint8_t private_data[224]
Private data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint8_t link_width_enabled
struct ib_mad_hdr mad_hdr
uint8_t port_phys_state__link_down_def_state
uint32_t local_id
Local communication ID.
uint8_t link_width_active
uint32_t remote_qpn_eecn
Remote QPN/EECN.
union ib_smp_data smp_data
struct ib_cm_path primary
Primary path.
unsigned long long uint64_t
uint8_t private_data[196]
Private data.
uint32_t remote_id
Remote communication ID.
uint8_t hop_limit
Hop limit.
A communication management disconnection reply.
union ib_guid service_id
Service ID.
A Node Description attribute.
uint8_t info[72]
Additional rejection information.
uint8_t message
Message rejected.
uint8_t mkey_prot_bits__lmc
A subnet management header.
An Infiniband Global Identifier.
uint8_t private_data[92]
Private data.
uint32_t starting_psn
Starting PSN.
uint8_t link_speed_active__link_speed_enabled
uint8_t mtu_selector__mtu
struct ib_port_info port_info
uint32_t sl__flow_label__hop_limit
uint8_t local_phy_errors__overrun_errors
A communication management MAD.
uint8_t target_ack_delay__failover_accepted__ee_flow_ctrl
Target ACK delay, failover accepted, and end-to-end flow control.
uint32_t local_qpn__responder_resources
Local QPN and responder resources.
uint8_t initiator_depth
Initiator depth.
A communication management ready to use reply.
union ib_guid local_ca
Local CA GUID.
uint8_t rnr_retry__srq
RNR retry count, SRQ.
uint8_t link_speed_supported__port_state
struct ib_smp_dr_path initial_path
uint32_t local_eecn__initiator_depth
Local EECN and initiator depth.
uint32_t pkey__numb_path__reversible__tclass
A Node Information attribute.
uint32_t remote_id
Remote communication ID.
struct ib_smp_hdr __attribute__((packed))
uint32_t remote_eecn__remote_timeout__service_type__ee_flow_ctrl
Remote EECN, remote CM response timeout, transport service type, EE flow control.
uint8_t responder_resources
Responder resources.
struct ib_cm_common common
uint8_t rate_selector__rate
A communication management disconnection request.
uint8_t local_ack_timeout
Local ACK timeout.
uint16_t local_lid
Local port LID.
uint8_t reserved[224]
Reserved.
struct ib_cm_connect_reply connect_reply
Communication management common fields.
union ib_gid remote_gid
Remote port GID.
A communication management connection request.
struct ib_rmpp_hdr rmpp_hdr
uint32_t hop_limit__flow_label__raw_traffic
uint8_t client_reregister__subnet_timeout
uint8_t neighbour_mtu__mastersm_sl
uint32_t reserved0[1]
Reserved.
A management datagram common header.
struct ib_service_record service_record
An Infiniband Globally Unique Identifier.
struct ib_cm_ready_to_use ready_to_use
struct ib_path_record path_record
struct ib_cm_disconnect_reply disconnect_reply
uint8_t private_data[224]
Private data.
uint8_t private_data[148]
Private data.
uint8_t mtu_selector__mtu
uint8_t private_data[220]
Private data.
uint8_t proxy_join__reserved
uint8_t vl_arbitration_low_cap
struct ib_cm_connect_reject connect_reject
A subnet management attribute.
uint32_t local_id
Local communication ID.
uint32_t local_qkey
Local queue key.
uint8_t vl_arbitration_high_cap
struct ib_cm_path alternate
Alternate path.
struct ib_mc_member_record mc_member_record
uint32_t local_id
Local communication ID.
union ib_gid local_gid
Local port GID.
struct ib_cm_connect_request connect_request
uint32_t local_qpn
Local QPN.
uint32_t local_id
Local communication ID.
uint8_t link_width_supported
A communication management connection rejection.
union ib_mad_class_specific class_specific
uint8_t max_cm_retries__srq
Max CM retries and SRQ.
union ib_guid local_ca
Local CA GUID.
A communication management path.
struct ib_guid_info guid_info
struct ib_mad_hdr mad_hdr
uint32_t remote_id
Remote communication ID.
Infiniband packet format.
struct ib_cm_disconnect_request disconnect_request
uint32_t local_qkey
Local queue key.
uint8_t packet_lifetime_selector__packet_lifetime
uint8_t info_len
Reject information length.
struct ib_smp_hdr smp_hdr
struct ib_node_desc node_desc
struct ib_smp_class_specific smp
uint8_t payload_mtu__rdc_exists__rnr_retry
Path packet payload MTU, RDC exists, RNR retry count.
uint32_t remote_id
Remote communication ID.
struct ib_pkey_table pkey_table
uint16_t mkey_lease_period
A Partition Key Table attribute.
uint32_t remote_id
Remote communication ID.
uint8_t init_type_reply__mtu_cap
uint32_t preference__packet_lifetime__packet_lifetime_selector
uint32_t reserved1[1]
Reserved.
uint32_t link_round_trip_latency
A GUID Information attribute.
A subnet management directed route path.
uint8_t operational_vls__enforcement
struct ib_smp_dr_path return_path
Subnet management MAD class-specific data.
A subnet administration MAD.
uint8_t rate_selector__rate
A Port Information attribute.
uint8_t vl_cap__init_type
A management datagram transaction identifier.
uint32_t local_id
Local communication ID.
uint8_t sl__subnet_local
SL and subnet local.
uint32_t local_id
Local communication ID.
uint32_t local_id
Local communication ID.
Management datagram class_specific data.
A communication management attribute.
uint8_t vl_stall_count__hoq_life