Skip to content

Commit 802ec4f

Browse files
mikechristiemartinkpetersen
authored andcommitted
scsi: target: core: Cleanup cmd flag bits
We have a couple holes in the cmd flags definitions. This cleans up the definitions to fix that and make it easier to read. Link: https://lore.kernel.org/r/20210227170006.5077-21-michael.christie@oracle.com Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1130b49 commit 802ec4f

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

‎include/target/target_core_base.h‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -127,25 +127,25 @@ enum transport_state_table {
127127

128128
/* Used for struct se_cmd->se_cmd_flags */
129129
enum se_cmd_flags_table {
130-
SCF_SUPPORTED_SAM_OPCODE = 0x00000001,
131-
SCF_TRANSPORT_TASK_SENSE = 0x00000002,
132-
SCF_EMULATED_TASK_SENSE = 0x00000004,
133-
SCF_SCSI_DATA_CDB = 0x00000008,
134-
SCF_SCSI_TMR_CDB = 0x00000010,
135-
SCF_FUA = 0x00000080,
136-
SCF_SE_LUN_CMD = 0x00000100,
137-
SCF_BIDI = 0x00000400,
138-
SCF_SENT_CHECK_CONDITION = 0x00000800,
139-
SCF_OVERFLOW_BIT = 0x00001000,
140-
SCF_UNDERFLOW_BIT = 0x00002000,
141-
SCF_ALUA_NON_OPTIMIZED = 0x00008000,
142-
SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00020000,
143-
SCF_COMPARE_AND_WRITE = 0x00080000,
144-
SCF_PASSTHROUGH_PROT_SG_TO_MEM_NOALLOC = 0x00200000,
145-
SCF_ACK_KREF = 0x00400000,
146-
SCF_USE_CPUID = 0x00800000,
147-
SCF_TASK_ATTR_SET = 0x01000000,
148-
SCF_TREAT_READ_AS_NORMAL = 0x02000000,
130+
SCF_SUPPORTED_SAM_OPCODE = (1 << 0),
131+
SCF_TRANSPORT_TASK_SENSE = (1 << 1),
132+
SCF_EMULATED_TASK_SENSE = (1 << 2),
133+
SCF_SCSI_DATA_CDB = (1 << 3),
134+
SCF_SCSI_TMR_CDB = (1 << 4),
135+
SCF_FUA = (1 << 5),
136+
SCF_SE_LUN_CMD = (1 << 6),
137+
SCF_BIDI = (1 << 7),
138+
SCF_SENT_CHECK_CONDITION = (1 << 8),
139+
SCF_OVERFLOW_BIT = (1 << 9),
140+
SCF_UNDERFLOW_BIT = (1 << 10),
141+
SCF_ALUA_NON_OPTIMIZED = (1 << 11),
142+
SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = (1 << 12),
143+
SCF_COMPARE_AND_WRITE = (1 << 13),
144+
SCF_PASSTHROUGH_PROT_SG_TO_MEM_NOALLOC = (1 << 14),
145+
SCF_ACK_KREF = (1 << 15),
146+
SCF_USE_CPUID = (1 << 16),
147+
SCF_TASK_ATTR_SET = (1 << 17),
148+
SCF_TREAT_READ_AS_NORMAL = (1 << 18),
149149
};
150150

151151
/*

0 commit comments

Comments
 (0)