Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Copyright (c) 2020, Mellanox Technologies inc. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * This file is IBTA volume 1, chapter 12 declarations:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *  CHAPTER 12: COMMUNICATION MANAGEMENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #ifndef _IBTA_VOL1_C12_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #define _IBTA_VOL1_C12_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <rdma/iba.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width)           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 	IBA_FIELD_BLOC(field_struct,                                           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 		       (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 		       width)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #define CM_FIELD8_LOC(field_struct, byte_offset, width)                        \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 	IBA_FIELD8_LOC(field_struct,                                           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 		       (byte_offset + sizeof(struct ib_mad_hdr)), width)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #define CM_FIELD16_LOC(field_struct, byte_offset, width)                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	IBA_FIELD16_LOC(field_struct,                                          \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 			(byte_offset + sizeof(struct ib_mad_hdr)), width)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #define CM_FIELD32_LOC(field_struct, byte_offset, width)                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	IBA_FIELD32_LOC(field_struct,                                          \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 			(byte_offset + sizeof(struct ib_mad_hdr)), width)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #define CM_FIELD64_LOC(field_struct, byte_offset)                              \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	IBA_FIELD64_LOC(field_struct, (byte_offset + sizeof(struct ib_mad_hdr)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #define CM_FIELD_MLOC(field_struct, byte_offset, width, type)                  \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	IBA_FIELD_MLOC(field_struct,                                           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 		       (byte_offset + sizeof(struct ib_mad_hdr)), width, type)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #define CM_STRUCT(field_struct, total_len)                                     \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	field_struct                                                           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	{                                                                      \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 		struct ib_mad_hdr hdr;                                         \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 		u32 _data[(total_len) / 32 +                                   \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 			  BUILD_BUG_ON_ZERO((total_len) % 32 != 0)];           \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) /* Table 106 REQ Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #define CM_REQ_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_req_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #define CM_REQ_VENDOR_ID CM_FIELD32_LOC(struct cm_req_msg, 5, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) #define CM_REQ_SERVICE_ID CM_FIELD64_LOC(struct cm_req_msg, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) #define CM_REQ_LOCAL_CA_GUID CM_FIELD64_LOC(struct cm_req_msg, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) #define CM_REQ_LOCAL_Q_KEY CM_FIELD32_LOC(struct cm_req_msg, 28, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #define CM_REQ_LOCAL_QPN CM_FIELD32_LOC(struct cm_req_msg, 32, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) #define CM_REQ_RESPONDER_RESOURCES CM_FIELD8_LOC(struct cm_req_msg, 35, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) #define CM_REQ_LOCAL_EECN CM_FIELD32_LOC(struct cm_req_msg, 36, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #define CM_REQ_INITIATOR_DEPTH CM_FIELD8_LOC(struct cm_req_msg, 39, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) #define CM_REQ_REMOTE_EECN CM_FIELD32_LOC(struct cm_req_msg, 40, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #define CM_REQ_REMOTE_CM_RESPONSE_TIMEOUT                                      \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	CM_FIELD8_LOC(struct cm_req_msg, 43, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) #define CM_REQ_TRANSPORT_SERVICE_TYPE CM_FIELD_BLOC(struct cm_req_msg, 43, 5, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) #define CM_REQ_END_TO_END_FLOW_CONTROL                                         \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	CM_FIELD_BLOC(struct cm_req_msg, 43, 7, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) #define CM_REQ_STARTING_PSN CM_FIELD32_LOC(struct cm_req_msg, 44, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) #define CM_REQ_LOCAL_CM_RESPONSE_TIMEOUT CM_FIELD8_LOC(struct cm_req_msg, 47, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) #define CM_REQ_RETRY_COUNT CM_FIELD_BLOC(struct cm_req_msg, 47, 5, 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) #define CM_REQ_PARTITION_KEY CM_FIELD16_LOC(struct cm_req_msg, 48, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) #define CM_REQ_PATH_PACKET_PAYLOAD_MTU CM_FIELD8_LOC(struct cm_req_msg, 50, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) #define CM_REQ_RDC_EXISTS CM_FIELD_BLOC(struct cm_req_msg, 50, 4, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) #define CM_REQ_RNR_RETRY_COUNT CM_FIELD_BLOC(struct cm_req_msg, 50, 5, 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) #define CM_REQ_MAX_CM_RETRIES CM_FIELD8_LOC(struct cm_req_msg, 51, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) #define CM_REQ_SRQ CM_FIELD_BLOC(struct cm_req_msg, 51, 4, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) #define CM_REQ_EXTENDED_TRANSPORT_TYPE                                         \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	CM_FIELD_BLOC(struct cm_req_msg, 51, 5, 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) #define CM_REQ_PRIMARY_LOCAL_PORT_LID CM_FIELD16_LOC(struct cm_req_msg, 52, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) #define CM_REQ_PRIMARY_REMOTE_PORT_LID CM_FIELD16_LOC(struct cm_req_msg, 54, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) #define CM_REQ_PRIMARY_LOCAL_PORT_GID                                          \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	CM_FIELD_MLOC(struct cm_req_msg, 56, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) #define CM_REQ_PRIMARY_REMOTE_PORT_GID                                         \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	CM_FIELD_MLOC(struct cm_req_msg, 72, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) #define CM_REQ_PRIMARY_FLOW_LABEL CM_FIELD32_LOC(struct cm_req_msg, 88, 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) #define CM_REQ_PRIMARY_PACKET_RATE CM_FIELD_BLOC(struct cm_req_msg, 91, 2, 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) #define CM_REQ_PRIMARY_TRAFFIC_CLASS CM_FIELD8_LOC(struct cm_req_msg, 92, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) #define CM_REQ_PRIMARY_HOP_LIMIT CM_FIELD8_LOC(struct cm_req_msg, 93, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) #define CM_REQ_PRIMARY_SL CM_FIELD8_LOC(struct cm_req_msg, 94, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) #define CM_REQ_PRIMARY_SUBNET_LOCAL CM_FIELD_BLOC(struct cm_req_msg, 94, 4, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) #define CM_REQ_PRIMARY_LOCAL_ACK_TIMEOUT CM_FIELD8_LOC(struct cm_req_msg, 95, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) #define CM_REQ_ALTERNATE_LOCAL_PORT_LID                                        \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	CM_FIELD16_LOC(struct cm_req_msg, 96, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) #define CM_REQ_ALTERNATE_REMOTE_PORT_LID                                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	CM_FIELD16_LOC(struct cm_req_msg, 98, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) #define CM_REQ_ALTERNATE_LOCAL_PORT_GID                                        \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	CM_FIELD_MLOC(struct cm_req_msg, 100, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) #define CM_REQ_ALTERNATE_REMOTE_PORT_GID                                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	CM_FIELD_MLOC(struct cm_req_msg, 116, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #define CM_REQ_ALTERNATE_FLOW_LABEL CM_FIELD32_LOC(struct cm_req_msg, 132, 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) #define CM_REQ_ALTERNATE_PACKET_RATE CM_FIELD_BLOC(struct cm_req_msg, 135, 2, 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) #define CM_REQ_ALTERNATE_TRAFFIC_CLASS CM_FIELD8_LOC(struct cm_req_msg, 136, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) #define CM_REQ_ALTERNATE_HOP_LIMIT CM_FIELD8_LOC(struct cm_req_msg, 137, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) #define CM_REQ_ALTERNATE_SL CM_FIELD8_LOC(struct cm_req_msg, 138, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) #define CM_REQ_ALTERNATE_SUBNET_LOCAL                                          \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	CM_FIELD_BLOC(struct cm_req_msg, 138, 4, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #define CM_REQ_ALTERNATE_LOCAL_ACK_TIMEOUT                                     \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	CM_FIELD8_LOC(struct cm_req_msg, 139, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) #define CM_REQ_SAP_SUPPORTED CM_FIELD_BLOC(struct cm_req_msg, 139, 5, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) #define CM_REQ_PRIVATE_DATA CM_FIELD_MLOC(struct cm_req_msg, 140, 736, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) CM_STRUCT(struct cm_req_msg, 140 * 8 + 736);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) /* Table 107 MRA Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define CM_MRA_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_mra_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define CM_MRA_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_mra_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define CM_MRA_MESSAGE_MRAED CM_FIELD8_LOC(struct cm_mra_msg, 8, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define CM_MRA_SERVICE_TIMEOUT CM_FIELD8_LOC(struct cm_mra_msg, 9, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define CM_MRA_PRIVATE_DATA CM_FIELD_MLOC(struct cm_mra_msg, 10, 1776, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) CM_STRUCT(struct cm_mra_msg, 10 * 8 + 1776);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) /* Table 108 REJ Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define CM_REJ_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_rej_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define CM_REJ_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_rej_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define CM_REJ_MESSAGE_REJECTED CM_FIELD8_LOC(struct cm_rej_msg, 8, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define CM_REJ_REJECTED_INFO_LENGTH CM_FIELD8_LOC(struct cm_rej_msg, 9, 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define CM_REJ_REASON CM_FIELD16_LOC(struct cm_rej_msg, 10, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define CM_REJ_ARI CM_FIELD_MLOC(struct cm_rej_msg, 12, 576, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define CM_REJ_PRIVATE_DATA CM_FIELD_MLOC(struct cm_rej_msg, 84, 1184, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) CM_STRUCT(struct cm_rej_msg, 84 * 8 + 1184);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) /* Table 110 REP Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define CM_REP_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_rep_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) #define CM_REP_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_rep_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define CM_REP_LOCAL_Q_KEY CM_FIELD32_LOC(struct cm_rep_msg, 8, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define CM_REP_LOCAL_QPN CM_FIELD32_LOC(struct cm_rep_msg, 12, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define CM_REP_VENDOR_ID_H CM_FIELD8_LOC(struct cm_rep_msg, 15, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) #define CM_REP_LOCAL_EE_CONTEXT_NUMBER CM_FIELD32_LOC(struct cm_rep_msg, 16, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define CM_REP_VENDOR_ID_M CM_FIELD8_LOC(struct cm_rep_msg, 19, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #define CM_REP_STARTING_PSN CM_FIELD32_LOC(struct cm_rep_msg, 20, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) #define CM_REP_VENDOR_ID_L CM_FIELD8_LOC(struct cm_rep_msg, 23, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define CM_REP_RESPONDER_RESOURCES CM_FIELD8_LOC(struct cm_rep_msg, 24, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #define CM_REP_INITIATOR_DEPTH CM_FIELD8_LOC(struct cm_rep_msg, 25, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define CM_REP_TARGET_ACK_DELAY CM_FIELD8_LOC(struct cm_rep_msg, 26, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define CM_REP_FAILOVER_ACCEPTED CM_FIELD_BLOC(struct cm_rep_msg, 26, 5, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define CM_REP_END_TO_END_FLOW_CONTROL                                         \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	CM_FIELD_BLOC(struct cm_rep_msg, 26, 7, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) #define CM_REP_RNR_RETRY_COUNT CM_FIELD8_LOC(struct cm_rep_msg, 27, 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define CM_REP_SRQ CM_FIELD_BLOC(struct cm_rep_msg, 27, 3, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) #define CM_REP_LOCAL_CA_GUID CM_FIELD64_LOC(struct cm_rep_msg, 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define CM_REP_PRIVATE_DATA CM_FIELD_MLOC(struct cm_rep_msg, 36, 1568, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) CM_STRUCT(struct cm_rep_msg, 36 * 8 + 1568);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) /* Table 111 RTU Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #define CM_RTU_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_rtu_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #define CM_RTU_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_rtu_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #define CM_RTU_PRIVATE_DATA CM_FIELD_MLOC(struct cm_rtu_msg, 8, 1792, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) CM_STRUCT(struct cm_rtu_msg, 8 * 8 + 1792);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) /* Table 112 DREQ Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #define CM_DREQ_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_dreq_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) #define CM_DREQ_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_dreq_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) #define CM_DREQ_REMOTE_QPN_EECN CM_FIELD32_LOC(struct cm_dreq_msg, 8, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) #define CM_DREQ_PRIVATE_DATA CM_FIELD_MLOC(struct cm_dreq_msg, 12, 1760, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) CM_STRUCT(struct cm_dreq_msg, 12 * 8 + 1760);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) /* Table 113 DREP Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #define CM_DREP_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_drep_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) #define CM_DREP_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_drep_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) #define CM_DREP_PRIVATE_DATA CM_FIELD_MLOC(struct cm_drep_msg, 8, 1792, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) CM_STRUCT(struct cm_drep_msg, 8 * 8 + 1792);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) /* Table 115 LAP Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) #define CM_LAP_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_lap_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) #define CM_LAP_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_lap_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) #define CM_LAP_REMOTE_QPN_EECN CM_FIELD32_LOC(struct cm_lap_msg, 12, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) #define CM_LAP_REMOTE_CM_RESPONSE_TIMEOUT                                      \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	CM_FIELD8_LOC(struct cm_lap_msg, 15, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define CM_LAP_ALTERNATE_LOCAL_PORT_LID                                        \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	CM_FIELD16_LOC(struct cm_lap_msg, 20, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #define CM_LAP_ALTERNATE_REMOTE_PORT_LID                                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	CM_FIELD16_LOC(struct cm_lap_msg, 22, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) #define CM_LAP_ALTERNATE_LOCAL_PORT_GID                                        \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	CM_FIELD_MLOC(struct cm_lap_msg, 24, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #define CM_LAP_ALTERNATE_REMOTE_PORT_GID                                       \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	CM_FIELD_MLOC(struct cm_lap_msg, 40, 128, union ib_gid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #define CM_LAP_ALTERNATE_FLOW_LABEL CM_FIELD32_LOC(struct cm_lap_msg, 56, 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) #define CM_LAP_ALTERNATE_TRAFFIC_CLASS CM_FIELD8_LOC(struct cm_lap_msg, 59, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #define CM_LAP_ALTERNATE_HOP_LIMIT CM_FIELD8_LOC(struct cm_lap_msg, 60, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) #define CM_LAP_ALTERNATE_PACKET_RATE CM_FIELD_BLOC(struct cm_lap_msg, 61, 2, 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) #define CM_LAP_ALTERNATE_SL CM_FIELD8_LOC(struct cm_lap_msg, 62, 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) #define CM_LAP_ALTERNATE_SUBNET_LOCAL CM_FIELD_BLOC(struct cm_lap_msg, 62, 4, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #define CM_LAP_ALTERNATE_LOCAL_ACK_TIMEOUT                                     \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	CM_FIELD8_LOC(struct cm_lap_msg, 63, 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) #define CM_LAP_PRIVATE_DATA CM_FIELD_MLOC(struct cm_lap_msg, 64, 1344, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) CM_STRUCT(struct cm_lap_msg, 64 * 8 + 1344);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) /* Table 116 APR Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #define CM_APR_LOCAL_COMM_ID CM_FIELD32_LOC(struct cm_apr_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) #define CM_APR_REMOTE_COMM_ID CM_FIELD32_LOC(struct cm_apr_msg, 4, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #define CM_APR_ADDITIONAL_INFORMATION_LENGTH                                   \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	CM_FIELD8_LOC(struct cm_apr_msg, 8, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) #define CM_APR_AR_STATUS CM_FIELD8_LOC(struct cm_apr_msg, 9, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) #define CM_APR_ADDITIONAL_INFORMATION                                          \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	CM_FIELD_MLOC(struct cm_apr_msg, 12, 576, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) #define CM_APR_PRIVATE_DATA CM_FIELD_MLOC(struct cm_apr_msg, 84, 1184, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) CM_STRUCT(struct cm_apr_msg, 84 * 8 + 1184);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) /* Table 119 SIDR_REQ Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #define CM_SIDR_REQ_REQUESTID CM_FIELD32_LOC(struct cm_sidr_req_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) #define CM_SIDR_REQ_PARTITION_KEY CM_FIELD16_LOC(struct cm_sidr_req_msg, 4, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #define CM_SIDR_REQ_SERVICEID CM_FIELD64_LOC(struct cm_sidr_req_msg, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) #define CM_SIDR_REQ_PRIVATE_DATA                                               \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	CM_FIELD_MLOC(struct cm_sidr_req_msg, 16, 1728, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) CM_STRUCT(struct cm_sidr_req_msg, 16 * 8 + 1728);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) /* Table 120 SIDR_REP Message Contents */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #define CM_SIDR_REP_REQUESTID CM_FIELD32_LOC(struct cm_sidr_rep_msg, 0, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define CM_SIDR_REP_STATUS CM_FIELD8_LOC(struct cm_sidr_rep_msg, 4, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) #define CM_SIDR_REP_ADDITIONAL_INFORMATION_LENGTH                              \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	CM_FIELD8_LOC(struct cm_sidr_rep_msg, 5, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #define CM_SIDR_REP_VENDOR_ID_H CM_FIELD16_LOC(struct cm_sidr_rep_msg, 6, 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #define CM_SIDR_REP_QPN CM_FIELD32_LOC(struct cm_sidr_rep_msg, 8, 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) #define CM_SIDR_REP_VENDOR_ID_L CM_FIELD8_LOC(struct cm_sidr_rep_msg, 11, 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) #define CM_SIDR_REP_SERVICEID CM_FIELD64_LOC(struct cm_sidr_rep_msg, 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) #define CM_SIDR_REP_Q_KEY CM_FIELD32_LOC(struct cm_sidr_rep_msg, 20, 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #define CM_SIDR_REP_ADDITIONAL_INFORMATION                                     \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	CM_FIELD_MLOC(struct cm_sidr_rep_msg, 24, 576, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) #define CM_SIDR_REP_PRIVATE_DATA                                               \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	CM_FIELD_MLOC(struct cm_sidr_rep_msg, 96, 1088, void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) CM_STRUCT(struct cm_sidr_rep_msg, 96 * 8 + 1088);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) #endif /* _IBTA_VOL1_C12_H_ */