aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-03-29 22:36:16 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-04-08 02:27:48 -0400
commit901c04a33f138e5fb935a1621375a1a0997fe7b1 (patch)
treef56b32598102c83b8373a39b00512db37b30eb0b /include/target
parent64b16887749fd8e8000cc2ad1acca3cd29f84086 (diff)
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>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/iscsi/iscsi_target_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/target/iscsi/iscsi_target_core.h b/include/target/iscsi/iscsi_target_core.h
index 0e394a031c28..54e7af301888 100644
--- a/include/target/iscsi/iscsi_target_core.h
+++ b/include/target/iscsi/iscsi_target_core.h
@@ -62,6 +62,7 @@
62#define TA_CACHE_CORE_NPS 0 62#define TA_CACHE_CORE_NPS 0
63/* T10 protection information disabled by default */ 63/* T10 protection information disabled by default */
64#define TA_DEFAULT_T10_PI 0 64#define TA_DEFAULT_T10_PI 0
65#define TA_DEFAULT_FABRIC_PROT_TYPE 0
65 66
66#define ISCSI_IOV_DATA_BUFFER 5 67#define ISCSI_IOV_DATA_BUFFER 5
67 68
@@ -772,6 +773,7 @@ struct iscsi_tpg_attrib {
772 u32 demo_mode_discovery; 773 u32 demo_mode_discovery;
773 u32 default_erl; 774 u32 default_erl;
774 u8 t10_pi; 775 u8 t10_pi;
776 u32 fabric_prot_type;
775 struct iscsi_portal_group *tpg; 777 struct iscsi_portal_group *tpg;
776}; 778};
777 779