iscsi-target: Add tpg_enabled_sendtargets for disabled discovery
This patch adds a new tpg_enabled_sendtargets configfs attribute to allow in-band sendtargets discovery information to include target-portal-groups (TPGs) in !TPG_STATE_ACTIVE state. This functionality is useful for clustered iSCSI targets, where TPGTs handled on remote cluster nodes should be advertised in the SendTargets response. By default, this new attribute retains the default behaviour of existing code which to ignore portal-groups in !TPG_STATE_ACTIVE state. Signed-off-by: David Disseldorp <ddiss@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
committed by
Nicholas Bellinger
parent
9d8c94e48a
commit
a6415cddc4
@@ -62,6 +62,8 @@
|
||||
/* T10 protection information disabled by default */
|
||||
#define TA_DEFAULT_T10_PI 0
|
||||
#define TA_DEFAULT_FABRIC_PROT_TYPE 0
|
||||
/* TPG status needs to be enabled to return sendtargets discovery endpoint info */
|
||||
#define TA_DEFAULT_TPG_ENABLED_SENDTARGETS 1
|
||||
|
||||
#define ISCSI_IOV_DATA_BUFFER 5
|
||||
|
||||
@@ -763,6 +765,7 @@ struct iscsi_tpg_attrib {
|
||||
u32 default_erl;
|
||||
u8 t10_pi;
|
||||
u32 fabric_prot_type;
|
||||
u32 tpg_enabled_sendtargets;
|
||||
struct iscsi_portal_group *tpg;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user