Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756221AbdGKXin (ORCPT ); Tue, 11 Jul 2017 19:38:43 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:21282 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756185AbdGKXik (ORCPT ); Tue, 11 Jul 2017 19:38:40 -0400 X-IronPort-AV: E=Sophos;i="5.40,347,1496073600"; d="scan'208";a="33277036" From: Bart Van Assche To: "target-devel@vger.kernel.org" , "nab@linux-iscsi.org" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robert@leblancnet.us" , "arun.easi@cavium.com" Subject: Re: [PATCH] iscsi-target: Add login_keys_workaround attribute for non RFC initiators Thread-Topic: [PATCH] iscsi-target: Add login_keys_workaround attribute for non RFC initiators Thread-Index: AQHS9285/z4WzMbT60W9TlYOuzqqRKJPTsGA Date: Tue, 11 Jul 2017 23:38:37 +0000 Message-ID: <1499816315.2586.51.camel@wdc.com> References: <1499466285-9907-1-git-send-email-nab@linux-iscsi.org> In-Reply-To: <1499466285-9907-1-git-send-email-nab@linux-iscsi.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=wdc.com; x-originating-ip: [63.163.107.100] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1534;20:7IWHjPijdtJXlJH6FWSD1dpyLnvpXZBCtFoDyl+8hRtEJBw85Gg6lNf0E3je+H99yxp2L0DUzmF+bK1CZeBP5Vi2ZQcDeGFhJDbjQemhFo4O1BzeTxbHl1sbd/VSmA4ny6tmziArboUy1pKeLcAdB99teQFLUBzRfiDW+MEpSAk= x-ms-office365-filtering-correlation-id: 53031ca2-d451-4d6e-8041-08d4c8b5f3d4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR0401MB1534; x-ms-traffictypediagnostic: CY1PR0401MB1534: wdcipoutbound: EOP-TRUE x-exchange-antispam-report-test: UriScan:(236129657087228)(148574349560750); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0401MB1534;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0401MB1534; x-forefront-prvs: 0365C0E14B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39400400002)(39860400002)(39450400003)(39850400002)(39410400002)(39840400002)(24454002)(377424004)(6512007)(99286003)(575784001)(54906002)(4326008)(2950100002)(50986999)(6436002)(6506006)(54356999)(53936002)(76176999)(6486002)(229853002)(102836003)(77096006)(2906002)(36756003)(6116002)(2900100001)(6246003)(38730400002)(86362001)(25786009)(7736002)(3846002)(103116003)(305945005)(8936002)(5660300001)(33646002)(14454004)(2501003)(8676002)(72206003)(66066001)(81166006)(3660700001)(478600001)(3280700002)(189998001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1534;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: <43669E5FC4CBF2418B2F701BDCF08D8F@namprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2017 23:38:37.0414 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1534 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v6BNctBw013728 Content-Length: 1700 Lines: 38 On Fri, 2017-07-07 at 22:24 +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch re-introduces part of a long standing login workaround that > was recently dropped by: > > commit 1c99de981f30b3e7868b8d20ce5479fa1c0fea46 > Author: Nicholas Bellinger > Date: Sun Apr 2 13:36:44 2017 -0700 > > iscsi-target: Drop work-around for legacy GlobalSAN initiator > > Namely, the workaround for FirstBurstLength ended up being required by > Mellanox Flexboot PXE boot ROMs as reported by Robert. > > So this patch re-adds the work-around for FirstBurstLength within > iscsi_check_proposer_for_optional_reply(), and makes the key optional > to respond when the initiator does not propose, nor respond to it. > > Also as requested by Arun, this patch introduces a new TPG attribute > named 'login_keys_workaround' that controls the use of both the > FirstBurstLength workaround, as well as the two other existing > workarounds for gPXE iSCSI boot client. > > By default, the workaround is enabled with login_keys_workaround=1, > since Mellanox FlexBoot requires it, and Arun has verified the Qlogic > MSFT initiator already proposes FirstBurstLength, so it's uneffected > by this re-adding this part of the original work-around. Hello Nick, The new configfs attribute ("login_keys_workaround") may confuse users - for someone who has not followed this e-mail thread it can take a long time before they figure out that they need to set this configfs attribute. Have you considered to let the iSCSI target driver figure out whether or not that variable has to be set, e.g. by looking up the initiator IQN in a list? Bart.