diff --git a/srpt/README b/srpt/README index 1380cf354..1f0c91594 100644 --- a/srpt/README +++ b/srpt/README @@ -211,17 +211,7 @@ fe80:0000:0000:0000:0002:c903:0005:f350 Session names ------------- -The name assigned by the ib_srpt target driver to a session depends on the -mode in which it is operating. If one_target_per_port=y then the source port -GID is used as the session name. If one_target_per_port=n then the 128-bit SRP -initiator port identifier is used as the session name. This identifier is sent -by the SRP initiator to the SRP target via the SRP_LOGIN_REQ information unit. -The Linux SRP initiator (ib_srp) generates the initiator port identifier as -follows: -- The first eight bytes are the identifier extension ('initiator_ext' parameter - specified in the login string echoed into the sysfs file 'add_target'). -- The last eight bytes are the GUID of the initiator HCA port used to - communicate with the target. +The ib_srpt target driver uses the source port GID as session name. An example: @@ -242,7 +232,9 @@ fe80:0000:0000:0000:0002:c903:0003:cca8 $ (cd /sys/kernel/scst_tgt/targets/ib_srpt/[0-9a-f]* && ls -d sessions/*) sessions/fe80:0000:0000:0000:0002:c903:0003:cca7 +sessions/fe80:0000:0000:0000:0002:c903:0003:cca8 sessions/fe80:0000:0000:0000:0002:c903:0005:f34b +sessions/fe80:0000:0000:0000:0002:c903:0005:f34c LUN masking diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 44f7edfae..6f34cbe13 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -169,16 +169,6 @@ module_param(use_node_guid_in_target_name, bool, 0444); MODULE_PARM_DESC(use_node_guid_in_target_name, "Use HCA node GUID as SCST target name."); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) \ - || defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 -static int one_target_per_port = true; -#else -static bool one_target_per_port = true; -#endif -module_param(one_target_per_port, bool, 0444); -MODULE_PARM_DESC(one_target_per_port, - "One SCST target per HCA port instead of one per HCA."); - static struct rdma_cm_id *rdma_cm_id; static int srpt_get_u64_x(char *buffer, struct kernel_param *kp)