diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-08 15:49:46 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 02:27:47 -0400 |
commit | 59bb0ff5db755a6a833acd633015b406d0894253 (patch) | |
tree | 08e7e4f0aa669b68a18599666817d69fa4f7cf17 /drivers/scsi | |
parent | b1d75fe53ef20b90bb64b1e48b905416f0dfde23 (diff) |
tcm_qla2xxx: Set TARGET_PROT_ALL for sup_prot_ops
This patch adds the missing TARGET_PROT_ALL when initializing a new
session and declaring the capable se_sess->sup_prot_ops for T10-PI.
This is required in order to function with existing qla_target.c
DIF protection offload support.
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Saurav Kashyap <saurav.kashyap@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c index c4f66f5745a8..57346abf5662 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c | |||
@@ -1570,7 +1570,7 @@ static int tcm_qla2xxx_check_initiator_node_acl( | |||
1570 | 1570 | ||
1571 | se_sess = transport_init_session_tags(num_tags, | 1571 | se_sess = transport_init_session_tags(num_tags, |
1572 | sizeof(struct qla_tgt_cmd), | 1572 | sizeof(struct qla_tgt_cmd), |
1573 | TARGET_PROT_NORMAL); | 1573 | TARGET_PROT_ALL); |
1574 | if (IS_ERR(se_sess)) { | 1574 | if (IS_ERR(se_sess)) { |
1575 | pr_err("Unable to initialize struct se_session\n"); | 1575 | pr_err("Unable to initialize struct se_session\n"); |
1576 | return PTR_ERR(se_sess); | 1576 | return PTR_ERR(se_sess); |