[PATCH v1 1/7] Target/core: use sense_reason_t for se_cmd->pi_err

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sagi Grimberg <sagig@xxxxxxxxxxxx>
---
 include/target/target_core_base.h |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index d1b2435..5165cf7 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -466,10 +466,9 @@ enum target_prot_version {
 	TARGET_DIF_V2 = 2,
 };
 
-enum target_pi_error {
-	TARGET_GUARD_CHECK_FAILED = 0x1,
-	TARGET_APPTAG_CHECK_FAILED = 0x2,
-	TARGET_REFTAG_CHECK_FAILED = 0x3,
+enum target_guard_type {
+	TARGET_DIX_GUARD_CRC = 1,
+	TARGET_DIX_GUARD_IP = 2,
 };
 
 struct se_dif_v1_tuple {
@@ -572,8 +571,8 @@ struct se_cmd {
 	u32			prot_length;
 	struct scatterlist	*t_prot_sg;
 	unsigned int		t_prot_nents;
-	enum target_prot_ho	prot_handover;
-	enum target_pi_error	pi_err;
+	enum target_prot_ho     prot_handover;
+	sense_reason_t		pi_err;
 	u32			block_num;
 };
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux