Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3256209rwb; Mon, 15 Aug 2022 22:28:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6OsuuQMx132AMaucaIsPSjs+Yd9073J2AWAFysrpH3uo39ox8dmT1mlOyY1G6BudRDedm+ X-Received: by 2002:a05:6402:95c:b0:43d:6297:f241 with SMTP id h28-20020a056402095c00b0043d6297f241mr17249348edz.373.1660627689940; Mon, 15 Aug 2022 22:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627689; cv=none; d=google.com; s=arc-20160816; b=LRrQtd3R4h8pj2crJMOqDOHP0P7C53BsGrFY/1/ZbtBm2u2JNuR+KXw6csOsDpUpi0 Af54UpucYUPbSiXK00CUXYtyFtmD1O5rtvLzdBOExlY8R/ybNzQcy1leAoSiX7xcln78 XIe9vr6flaF1zejVh+KsecpNpEfJcl/Akkk2DT/3HJz5qmJbzT4vF8Xl1KkY5faQPSHr SWTKNigh487wk1D5mh58zTZ81Ns6JDVIqJNCNTrDBjwfMx1SrJQItREENcb4pKn2OsTq 2RAyIoROJOqjXFdqUxTjxzqz06AIqcjLzuMcJCvtZo0gyri2OA2WqVQMyA2es2YJkihK bZsg== 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=kq0KVcexqCMXqBNnfbaqoFepLQ0W9AGqufNthZjNNJ4=; b=rM71FFQhOBCtux2/8LxiuWHSDuivFroeOtRTllujNVcsY1B0ja3LOaBtqTllvEIFP/ 1n5TfHb/aqbemgMyEGWcNBHOuMRGtjTU5ehCCOwiICHKS/6fuy3NJBNCySrY1wpPXN/Z 9QEM6xgpJ+WbylXi6hnu+5dPx60JE9djvGLMbDlsFR56GZGIFHVrK36b2tIdR8QTn95l ZYc1/aaiZIs6JkRmpQttQcg90gzlGPYhImB/og0w+DZM4WXore9N7W2zZDa76Z0mOJox /8ICVyOrX8O1s+YzRUUyiC+548cFMvlMX49RQKMIH9nC5AO6+oW8q8YHevhAaSfx1aUZ qN7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KiKgwCG3; 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 hd14-20020a170907968e00b00702d8b7438csi10069240ejc.326.2022.08.15.22.27.44; Mon, 15 Aug 2022 22:28:09 -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=KiKgwCG3; 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 S230081AbiHPEb5 (ORCPT + 99 others); Tue, 16 Aug 2022 00:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbiHPEbU (ORCPT ); Tue, 16 Aug 2022 00:31:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E26E166D11; Mon, 15 Aug 2022 13:23:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 64D28B8119D; Mon, 15 Aug 2022 20:23:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91373C433C1; Mon, 15 Aug 2022 20:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594981; bh=zHtyKvF+3IwiihiHttebbuyNEoKDPYQ1LYoHknVbMJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KiKgwCG3QxLQY8bo81OvHqljMS/pptT5fPbDq92zb+uAKbIhx75VN14jtb1SI+g3i w1gPkSUS3nG+wFC0ZC5eZVx8WL9ViJRHtlLw+uwlv256r/Wh1up4EzE77rwQUTJDh9 Yzhsrlj+feh7RA/uUeqTfLli/xgpiT805u9kYI0I= 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.19 0588/1157] scsi: qla2xxx: edif: Fix n2n discovery issue with secure target Date: Mon, 15 Aug 2022 19:59:04 +0200 Message-Id: <20220815180503.182822184@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 06c1252019e1..bd5740f23e76 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