Target/core: Remove prot_handover use for now
authorSagi Grimberg <sagig@mellanox.com>
Wed, 19 Feb 2014 15:50:18 +0000 (17:50 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:43 +0000 (01:48 -0700)
This is not going to be supported soon - so drop it.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
include/target/target_core_base.h

index c301d9b6874da2d923c638e6398c0d814cfd53fc..11d69745c9b4e0e2360f3b429deb31e208f0d7be 100644 (file)
@@ -661,7 +661,6 @@ sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb,
 
        cmd->prot_type = dev->dev_attrib.pi_prot_type;
        cmd->prot_length = dev->prot_length * sectors;
-       cmd->prot_handover = PROT_SEPERATED;
 
        return true;
 }
index 82cb4ed06f7160df5cd3b7aaeb56b22ccef321b6..f13fd09d91dcbb2b43b59da7b8173d0e0cdc8853 100644 (file)
@@ -451,11 +451,6 @@ enum target_prot_op {
        TARGET_PROT_DOUT_PASS,
 };
 
-enum target_prot_ho {
-       PROT_SEPERATED,
-       PROT_INTERLEAVED,
-};
-
 enum target_prot_type {
        TARGET_DIF_TYPE0_PROT,
        TARGET_DIF_TYPE1_PROT,
@@ -567,7 +562,6 @@ struct se_cmd {
        u32                     reftag_seed;
        struct scatterlist      *t_prot_sg;
        unsigned int            t_prot_nents;
-       enum target_prot_ho     prot_handover;
        sense_reason_t          pi_err;
        sector_t                bad_sector;
        bool                    prot_pto;