summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-02-19 16:50:18 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2014-04-07 10:48:43 +0200
commit48f5e7b3dc1eb88cdc7772bd6a7bbb99c8843ae0 (patch)
tree070236703e37959044cd4b09e7be34d24b0d05b0
parentTarget/dif: Introduce protection-passthough-only mode (diff)
downloadlinux-48f5e7b3dc1eb88cdc7772bd6a7bbb99c8843ae0.tar.xz
linux-48f5e7b3dc1eb88cdc7772bd6a7bbb99c8843ae0.zip
Target/core: Remove prot_handover use for now
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>
-rw-r--r--drivers/target/target_core_sbc.c1
-rw-r--r--include/target/target_core_base.h6
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c
index c301d9b6874d..11d69745c9b4 100644
--- a/drivers/target/target_core_sbc.c
+++ b/drivers/target/target_core_sbc.c
@@ -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;
}
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 82cb4ed06f71..f13fd09d91dc 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -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;