Skip to content

Commit 1e1de2e

Browse files
Nicholas Bellingergregkh
authored andcommitted
iscsi-target: Drop work-around for legacy GlobalSAN initiator
commit 1c99de981f30b3e7868b8d20ce5479fa1c0fea46 upstream. Once upon a time back in 2009, a work-around was added to support the GlobalSAN iSCSI initiator v3.3 for MacOSX, which during login did not propose nor respond to MaxBurstLength, FirstBurstLength, DefaultTime2Wait and DefaultTime2Retain keys. The work-around in iscsi_check_proposer_for_optional_reply() allowed the missing keys to be proposed, but did not require waiting for a response before moving to full feature phase operation. This allowed GlobalSAN v3.3 to work out-of-the box, and for many years we didn't run into login interopt issues with any other initiators.. Until recently, when Martin tried a QLogic 57840S iSCSI Offload HBA on Windows 2016 which completed login, but subsequently failed with: Got unknown iSCSI OpCode: 0x43 The issue was QLogic MSFT side did not propose DefaultTime2Wait + DefaultTime2Retain, so LIO proposes them itself, and immediately transitions to full feature phase because of the GlobalSAN hack. However, the QLogic MSFT side still attempts to respond to DefaultTime2Retain + DefaultTime2Wait, even though LIO has set ISCSI_FLAG_LOGIN_NEXT_STAGE3 + ISCSI_FLAG_LOGIN_TRANSIT in last login response. So while the QLogic MSFT side should have been proposing these two keys to start, it was doing the correct thing per RFC-3720 attempting to respond to proposed keys before transitioning to full feature phase. All that said, recent versions of GlobalSAN iSCSI (v5.3.0.541) does correctly propose the four keys during login, making the original work-around moot. So in order to allow QLogic MSFT to run unmodified as-is, go ahead and drop this long standing work-around. Reported-by: Martin Svec <martin.svec@zoner.cz> Cc: Martin Svec <martin.svec@zoner.cz> Cc: Himanshu Madhani <Himanshu.Madhani@cavium.com> Cc: Arun Easi <arun.easi@cavium.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 05c5dd7 commit 1e1de2e

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

drivers/target/iscsi/iscsi_target_parameters.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -780,22 +780,6 @@ static void iscsi_check_proposer_for_optional_reply(struct iscsi_param *param)
780780
} else if (IS_TYPE_NUMBER(param)) {
781781
if (!strcmp(param->name, MAXRECVDATASEGMENTLENGTH))
782782
SET_PSTATE_REPLY_OPTIONAL(param);
783-
/*
784-
* The GlobalSAN iSCSI Initiator for MacOSX does
785-
* not respond to MaxBurstLength, FirstBurstLength,
786-
* DefaultTime2Wait or DefaultTime2Retain parameter keys.
787-
* So, we set them to 'reply optional' here, and assume the
788-
* the defaults from iscsi_parameters.h if the initiator
789-
* is not RFC compliant and the keys are not negotiated.
790-
*/
791-
if (!strcmp(param->name, MAXBURSTLENGTH))
792-
SET_PSTATE_REPLY_OPTIONAL(param);
793-
if (!strcmp(param->name, FIRSTBURSTLENGTH))
794-
SET_PSTATE_REPLY_OPTIONAL(param);
795-
if (!strcmp(param->name, DEFAULTTIME2WAIT))
796-
SET_PSTATE_REPLY_OPTIONAL(param);
797-
if (!strcmp(param->name, DEFAULTTIME2RETAIN))
798-
SET_PSTATE_REPLY_OPTIONAL(param);
799783
/*
800784
* Required for gPXE iSCSI boot client
801785
*/

0 commit comments

Comments
 (0)