Skip to content

Commit 3bd4dce

Browse files
dhharalagregkh
authored andcommitted
staging/rdma/hfi1: Clean up macro indentation
In preparation for implementing Expected TID caching we do some simple clean up of header file macros. Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9e10af4 commit 3bd4dce

2 files changed

Lines changed: 21 additions & 20 deletions

File tree

‎drivers/staging/rdma/hfi1/common.h‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,14 @@
132132
* HFI1_CAP_RESERVED_MASK bits.
133133
*/
134134
#define HFI1_CAP_WRITABLE_MASK (HFI1_CAP_SDMA_AHG | \
135-
HFI1_CAP_HDRSUPP | \
136-
HFI1_CAP_MULTI_PKT_EGR | \
137-
HFI1_CAP_NODROP_RHQ_FULL | \
138-
HFI1_CAP_NODROP_EGR_FULL | \
139-
HFI1_CAP_ALLOW_PERM_JKEY | \
140-
HFI1_CAP_STATIC_RATE_CTRL | \
141-
HFI1_CAP_PRINT_UNIMPL)
135+
HFI1_CAP_HDRSUPP | \
136+
HFI1_CAP_MULTI_PKT_EGR | \
137+
HFI1_CAP_NODROP_RHQ_FULL | \
138+
HFI1_CAP_NODROP_EGR_FULL | \
139+
HFI1_CAP_ALLOW_PERM_JKEY | \
140+
HFI1_CAP_STATIC_RATE_CTRL | \
141+
HFI1_CAP_PRINT_UNIMPL | \
142+
HFI1_CAP_TID_UNMAP)
142143
/*
143144
* A set of capability bits that are "global" and are not allowed to be
144145
* set in the user bitmask.

‎include/uapi/rdma/hfi/hfi1_user.h‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@
127127
#define HFI1_CMD_TID_UPDATE 4 /* update expected TID entries */
128128
#define HFI1_CMD_TID_FREE 5 /* free expected TID entries */
129129
#define HFI1_CMD_CREDIT_UPD 6 /* force an update of PIO credit */
130-
#define HFI1_CMD_SDMA_STATUS_UPD 7 /* force update of SDMA status ring */
130+
#define HFI1_CMD_SDMA_STATUS_UPD 7 /* force update of SDMA status ring */
131131

132132
#define HFI1_CMD_RECV_CTRL 8 /* control receipt of packets */
133133
#define HFI1_CMD_POLL_TYPE 9 /* set the kind of polling we want */
134134
#define HFI1_CMD_ACK_EVENT 10 /* ack & clear user status bits */
135-
#define HFI1_CMD_SET_PKEY 11 /* set context's pkey */
136-
#define HFI1_CMD_CTXT_RESET 12 /* reset context's HW send context */
135+
#define HFI1_CMD_SET_PKEY 11 /* set context's pkey */
136+
#define HFI1_CMD_CTXT_RESET 12 /* reset context's HW send context */
137137
/* separate EPROM commands from normal PSM commands */
138138
#define HFI1_CMD_EP_INFO 64 /* read EPROM device ID */
139139
#define HFI1_CMD_EP_ERASE_CHIP 65 /* erase whole EPROM */
@@ -144,18 +144,18 @@
144144
#define HFI1_CMD_EP_WRITE_P0 70 /* write EPROM partition 0 */
145145
#define HFI1_CMD_EP_WRITE_P1 71 /* write EPROM partition 1 */
146146

147-
#define _HFI1_EVENT_FROZEN_BIT 0
148-
#define _HFI1_EVENT_LINKDOWN_BIT 1
149-
#define _HFI1_EVENT_LID_CHANGE_BIT 2
150-
#define _HFI1_EVENT_LMC_CHANGE_BIT 3
151-
#define _HFI1_EVENT_SL2VL_CHANGE_BIT 4
147+
#define _HFI1_EVENT_FROZEN_BIT 0
148+
#define _HFI1_EVENT_LINKDOWN_BIT 1
149+
#define _HFI1_EVENT_LID_CHANGE_BIT 2
150+
#define _HFI1_EVENT_LMC_CHANGE_BIT 3
151+
#define _HFI1_EVENT_SL2VL_CHANGE_BIT 4
152152
#define _HFI1_MAX_EVENT_BIT _HFI1_EVENT_SL2VL_CHANGE_BIT
153153

154-
#define HFI1_EVENT_FROZEN (1UL << _HFI1_EVENT_FROZEN_BIT)
155-
#define HFI1_EVENT_LINKDOWN_BIT (1UL << _HFI1_EVENT_LINKDOWN_BIT)
156-
#define HFI1_EVENT_LID_CHANGE_BIT (1UL << _HFI1_EVENT_LID_CHANGE_BIT)
157-
#define HFI1_EVENT_LMC_CHANGE_BIT (1UL << _HFI1_EVENT_LMC_CHANGE_BIT)
158-
#define HFI1_EVENT_SL2VL_CHANGE_BIT (1UL << _HFI1_EVENT_SL2VL_CHANGE_BIT)
154+
#define HFI1_EVENT_FROZEN (1UL << _HFI1_EVENT_FROZEN_BIT)
155+
#define HFI1_EVENT_LINKDOWN (1UL << _HFI1_EVENT_LINKDOWN_BIT)
156+
#define HFI1_EVENT_LID_CHANGE (1UL << _HFI1_EVENT_LID_CHANGE_BIT)
157+
#define HFI1_EVENT_LMC_CHANGE (1UL << _HFI1_EVENT_LMC_CHANGE_BIT)
158+
#define HFI1_EVENT_SL2VL_CHANGE (1UL << _HFI1_EVENT_SL2VL_CHANGE_BIT)
159159

160160
/*
161161
* These are the status bits readable (in ASCII form, 64bit value)

0 commit comments

Comments
 (0)