Skip to content

Commit 3045f09

Browse files
Jack Morgensteinrolandd
authored andcommitted
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>
1 parent aeab97e commit 3045f09

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/infiniband/core/cm_msgs.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@
4444

4545
#define IB_CM_CLASS_VERSION 2 /* IB specification 1.2 */
4646

47-
#define CM_REQ_ATTR_ID cpu_to_be16(0x0010)
48-
#define CM_MRA_ATTR_ID cpu_to_be16(0x0011)
49-
#define CM_REJ_ATTR_ID cpu_to_be16(0x0012)
50-
#define CM_REP_ATTR_ID cpu_to_be16(0x0013)
51-
#define CM_RTU_ATTR_ID cpu_to_be16(0x0014)
52-
#define CM_DREQ_ATTR_ID cpu_to_be16(0x0015)
53-
#define CM_DREP_ATTR_ID cpu_to_be16(0x0016)
54-
#define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017)
55-
#define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018)
56-
#define CM_LAP_ATTR_ID cpu_to_be16(0x0019)
57-
#define CM_APR_ATTR_ID cpu_to_be16(0x001A)
58-
5947
enum cm_msg_sequence {
6048
CM_MSG_SEQUENCE_REQ,
6149
CM_MSG_SEQUENCE_LAP,

‎include/rdma/ib_cm.h‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,18 @@ struct ib_cm_event {
262262
void *private_data;
263263
};
264264

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+
265277
/**
266278
* ib_cm_handler - User-defined callback to process communication events.
267279
* @cm_id: Communication identifier associated with the reported event.

0 commit comments

Comments
 (0)