iscsi/iser-target: Add fabric_prot_type attribute support
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 30 Mar 2015 02:36:16 +0000 (19:36 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:48 +0000 (23:27 -0700)
commit901c04a33f138e5fb935a1621375a1a0997fe7b1
treef56b32598102c83b8373a39b00512db37b30eb0b
parent64b16887749fd8e8000cc2ad1acca3cd29f84086
iscsi/iser-target: Add fabric_prot_type attribute support

This patch updates iscsi/iser-target to add a new fabric_prot_type
TPG attribute for iser-target, used for controlling LLD level
protection into LIO when the backend device does not support T10-PI.

This is required for ib_isert to enable WRITE_STRIP + READ_INSERT
hardware offloads.

It's disabled by default and controls which se_sesion->sess_prot_type
are set at iscsi_target_locate_portal() session registration time.

Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Martin Petersen <martin.petersen@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_tpg.c
drivers/target/iscsi/iscsi_target_tpg.h
include/target/iscsi/iscsi_target_core.h