diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-08 23:31:39 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 09:27:45 +0300 |
commit | 436f4a0a99520623ef3fb994d70d2938fc9f00b6 (patch) | |
tree | 61f52444f6caf4b366fc48f25288f3e364ea9df6 /drivers/target/loopback/tcm_loop.h | |
parent | 1762742f3fd276570456eb669922e34e11bd98b7 (diff) | |
download | linux-436f4a0a99520623ef3fb994d70d2938fc9f00b6.tar.xz |
loopback: Add fabric_prot_type attribute support
This patch updates loopback to add a new fabric_prot_type TPG attribute,
used for controlling LLD level protection into LIO when the backend
device does not support T10-PI.
Also, go ahead and set DIN_PASS + DOUT_PASS so target-core knows that
it will be doing any WRITE_STRIP and READ_INSERT operations.
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback/tcm_loop.h')
-rw-r--r-- | drivers/target/loopback/tcm_loop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h index 6ae49f272ba6..1e72ff77cac9 100644 --- a/drivers/target/loopback/tcm_loop.h +++ b/drivers/target/loopback/tcm_loop.h @@ -43,6 +43,7 @@ struct tcm_loop_nacl { struct tcm_loop_tpg { unsigned short tl_tpgt; unsigned short tl_transport_status; + enum target_prot_type tl_fabric_prot_type; atomic_t tl_tpg_port_count; struct se_portal_group tl_se_tpg; struct tcm_loop_hba *tl_hba; |