Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020450rwb; Mon, 15 Aug 2022 16:17:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4h3N8O7OZ/Dcxug+SNUdu9jJE0WYNx/2xqf9e8wfa24x3fefV6tZjIV10Dfs70LbQWQaNp X-Received: by 2002:a65:6c07:0:b0:41d:9ddd:4266 with SMTP id y7-20020a656c07000000b0041d9ddd4266mr15508061pgu.326.1660605454044; Mon, 15 Aug 2022 16:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605454; cv=none; d=google.com; s=arc-20160816; b=RUK6kuDhYNO5K3dwTKH0l0CyGSoTRrTAOIamYJ8ufx+nLJ5COdI7ETGXoRmeakn6X5 q/52PS+8O0xZlcK+pP7ggCgjFT5iHI3mp5NR8UkTbGNz7tYBzGfECCjRh8xYlVbGy/62 OGBNrNbWR0I1Uk1LVMkf770t2LSCYF8q8OdWfFChshUMmhHdczbCsjjxl0pxKOQEEcON qFX+Y5QgGmtRx1n2H4ugBtXfLf+8vfK9bWU8zJrBcNM/0tmGldDtCE8gGVcBJdTLU6QX fi9LZh7HjqaUDv3b+fngcaVuDF6md9TnaO29ovNe43U0sF6rAzoAY+l1fbFBaHgoUUg1 L/9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SbhZ4A+68ogrpMpNdGSizw5QXRbBKPkpoqWe1jJZD3o=; b=SKd6GMLUaaZIqCMhmpQijQngS4XnXuo08G/ekKstxdqZ93qGfP8Pyd1MbPLqlVHPD3 OYxnK6AkQPtY/T1IGXCKZEvksOzp4yeLtzckDGKq/HbnhBlE/NpFvrHGlf/WPOvpmph9 u2zW+fShyDMqb0OnVLXa4tsWw0kmyy1i7M7oBa2hupjawKsSBud+eQZ/ZqyPc56YtTe9 U+Y5XhgpQvDLlMzReUalDe9mMTmmW2QflwJVaz789MTiVrOBLfGs3ADzWVMGELrdZQe7 76lOUSR/mrVbvdf77fOcm3zaCncikfyFQp5uY+dYzFlXz2w/tNJPhnc0T1voiI0Ch2q5 KYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jNIRlglj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a1709029a4c00b0016ef53cf5c7si11574739plv.12.2022.08.15.16.17.20; Mon, 15 Aug 2022 16:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jNIRlglj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348136AbiHOV3z (ORCPT + 99 others); Mon, 15 Aug 2022 17:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347665AbiHOV0G (ORCPT ); Mon, 15 Aug 2022 17:26:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9277CE8320; Mon, 15 Aug 2022 12:22:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B6AF960FDA; Mon, 15 Aug 2022 19:22:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE19DC433D6; Mon, 15 Aug 2022 19:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591359; bh=EpI4s0rZZlvhdv4EB9lnUgtUdH7otxTdlujJi/PPPfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNIRlgljrtXuk2X9mxXe8jlm18rzuT1SEjhhoncdeeDUSXBIf3QI2GYfNsKBkXcGC X/SbgogDcE3aoouFbF4Ec+qIzSGi2HCF73I1/QGfemaZ3rq2MdiapZ6pSEKtIsXZWw eoWHcGm6pOtuydO9GaTwywymgb0ODnyiAV55zTnw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Nilesh Javali , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.18 0554/1095] scsi: qla2xxx: edif: Fix n2n discovery issue with secure target Date: Mon, 15 Aug 2022 19:59:13 +0200 Message-Id: <20220815180452.472169540@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quinn Tran [ Upstream commit 789d54a4178634850e441f60c0326124138e7269 ] User failed to see disk via n2n topology. Driver used up all login retries before authentication application started. When authentication application started, driver did not have enough login retries to connect securely. On app_start, driver will reset the login retry attempt count. Link: https://lore.kernel.org/r/20220607044627.19563-10-njavali@marvell.com Fixes: 4de067e5df12 ("scsi: qla2xxx: edif: Add N2N support for EDIF") Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_edif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_edif.c b/drivers/scsi/qla2xxx/qla_edif.c index ce893ddb13df..c17e177864d3 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -515,6 +515,9 @@ qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) } if (N2N_TOPO(vha->hw)) { + list_for_each_entry_safe(fcport, tf, &vha->vp_fcports, list) + fcport->n2n_link_reset_cnt = 0; + if (vha->hw->flags.n2n_fw_acc_sec) set_bit(N2N_LINK_RESET, &vha->dpc_flags); else -- 2.35.1