Commit 59bb0ff5 authored by Nicholas Bellinger's avatar Nicholas Bellinger

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: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent b1d75fe5
...@@ -1570,7 +1570,7 @@ static int tcm_qla2xxx_check_initiator_node_acl( ...@@ -1570,7 +1570,7 @@ static int tcm_qla2xxx_check_initiator_node_acl(
se_sess = transport_init_session_tags(num_tags, se_sess = transport_init_session_tags(num_tags,
sizeof(struct qla_tgt_cmd), sizeof(struct qla_tgt_cmd),
TARGET_PROT_NORMAL); TARGET_PROT_ALL);
if (IS_ERR(se_sess)) { if (IS_ERR(se_sess)) {
pr_err("Unable to initialize struct se_session\n"); pr_err("Unable to initialize struct se_session\n");
return PTR_ERR(se_sess); return PTR_ERR(se_sess);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment