Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f5e7b3 authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Nicholas Bellinger
Browse files

Target/core: Remove prot_handover use for now



This is not going to be supported soon - so drop it.

Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent b5b8e298
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}
+0 −6
Original line number Diff line number Diff line
@@ -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;