~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/rdma/ibta_vol1_c12.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/rdma/ibta_vol1_c12.h (Architecture mips) and /include/rdma/ibta_vol1_c12.h (Architecture alpha)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php