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