Target/iscsi: Add T10-PI indication for iscsi_portal_group
authorSagi Grimberg <sagig@mellanox.com>
Wed, 19 Feb 2014 15:50:19 +0000 (17:50 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:43 +0000 (01:48 -0700)
commit5b168dcd6aa69f7421a7738eada749d376dd1253
tree89bf96930fc011263b59a6a8f106285015dac869
parent48f5e7b3dc1eb88cdc7772bd6a7bbb99c8843ae0
Target/iscsi: Add T10-PI indication for iscsi_portal_group

In case an iscsi portal group will be defined as t10_pi enabled,
all connections on top of it will support protected transactions.

T10-PI support may require extra reource allocation and maintenance by
the transport layer, so we don't want to apply them on non-t10_pi network
portals. This is a hook for the iscsi target layer to signal the transport
at connection establishment that this connection will carry protected
transactions.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_tpg.c