diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-06-19 04:21:39 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-07-08 21:05:06 -0400 |
commit | 3045f0920367e625bbec7d66fadb444e673515af (patch) | |
tree | a2e661e3ed3dc599be68a6c07ee8f38aaf179438 /include/rdma | |
parent | aeab97ed1503bedbe14d1e1c5ab7b90253a67664 (diff) |
IB/core: Move CM_xxx_ATTR_ID macros from cm_msgs.h to ib_cm.h
These macros will be reused by the mlx4 SRIOV-IB CM paravirtualization
code, and there is no reason to have them declared both in the IB core
in the mlx4 IB driver.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_cm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h index 83f77ac33957..0e3ff30647d5 100644 --- a/include/rdma/ib_cm.h +++ b/include/rdma/ib_cm.h | |||
@@ -262,6 +262,18 @@ struct ib_cm_event { | |||
262 | void *private_data; | 262 | void *private_data; |
263 | }; | 263 | }; |
264 | 264 | ||
265 | #define CM_REQ_ATTR_ID cpu_to_be16(0x0010) | ||
266 | #define CM_MRA_ATTR_ID cpu_to_be16(0x0011) | ||
267 | #define CM_REJ_ATTR_ID cpu_to_be16(0x0012) | ||
268 | #define CM_REP_ATTR_ID cpu_to_be16(0x0013) | ||
269 | #define CM_RTU_ATTR_ID cpu_to_be16(0x0014) | ||
270 | #define CM_DREQ_ATTR_ID cpu_to_be16(0x0015) | ||
271 | #define CM_DREP_ATTR_ID cpu_to_be16(0x0016) | ||
272 | #define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017) | ||
273 | #define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018) | ||
274 | #define CM_LAP_ATTR_ID cpu_to_be16(0x0019) | ||
275 | #define CM_APR_ATTR_ID cpu_to_be16(0x001A) | ||
276 | |||
265 | /** | 277 | /** |
266 | * ib_cm_handler - User-defined callback to process communication events. | 278 | * ib_cm_handler - User-defined callback to process communication events. |
267 | * @cm_id: Communication identifier associated with the reported event. | 279 | * @cm_id: Communication identifier associated with the reported event. |