Message ID | 20190125072351.3504-11-hmadhani@marvell.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | dcbf8f8087ebc4d721fd55c4c2072f1a97f6ef6d |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 249BF922 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B7CC2EF03 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 001BC2EF2A; Fri, 25 Jan 2019 07:25:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D76532EF10 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfAYHZd (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 25 Jan 2019 02:25:33 -0500 Received: from mail-eopbgr740075.outbound.protection.outlook.com ([40.107.74.75]:16000 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727210AbfAYHZd (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 25 Jan 2019 02:25:33 -0500 Received: from BYAPR07CA0039.namprd07.prod.outlook.com (2603:10b6:a03:60::16) by DM6PR07MB4762.namprd07.prod.outlook.com (2603:10b6:5:a1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Fri, 25 Jan 2019 07:25:30 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BYAPR07CA0039.outlook.office365.com (2603:10b6:a03:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:30 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:29 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:25 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x0P7ONCB003588; Thu, 24 Jan 2019 23:24:23 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7ONMf003587; Thu, 24 Jan 2019 23:24:23 -0800 From: Himanshu Madhani <hmadhani@marvell.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <hmadhani@marvell.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 10/13] qla2xxx: Restore FAWWPN of Physical Port only for loop down Date: Thu, 24 Jan 2019 23:23:48 -0800 Message-ID: <20190125072351.3504-11-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747301578000;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(39860400002)(346002)(136003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(498600001)(87636003)(86362001)(51416003)(50226002)(2906002)(1076003)(69596002)(80596001)(8676002)(36756003)(105606002)(106466001)(81166006)(81156014)(48376002)(356004)(6666004)(4326008)(97736004)(26005)(8936002)(68736007)(14444005)(53936002)(50466002)(16586007)(42186006)(316002)(336012)(110136005)(54906003)(36906005)(76176011)(305945005)(126002)(486006)(47776003)(11346002)(476003)(2616005)(446003)(85426001)(26826003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4762;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:GO2AYX6eZDjsrrdZsPl2luG36X+JlBQGXCtPEWg6ZmFPT7gpsr+ZhBDdMhd9uTk1ccGV1DU+GDkicFLDjkzCmX8Bwozb7m/KqG/2kfammS+5s2oBlAmBmCzFZ4O/gp+ITznvPA8Dgq06qJxVceQj/Q== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 82dc09d2-d42a-43f6-56db-08d682964909 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM6PR07MB4762; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4762;3:aC8CGmfnE6dlxWCn1EBkF34cBZtD6iVNsdk/5xaQBh0u/9bG4CHaZqxo++13hieTGvQSOtY/igcDmcSgcmxnPtwJfQSk0zXs/0ALjmYhqZUErDWVVsziyWE6B/V4+y84e7INUPpeSYRevXTrtglyI2OukEDHg/8Od1oAmgZu9ssyHPJwGNH4J9yW8CUVpyozMhWDjLJ5gSW4LEEkYQ4Ef9skwVgrbfIVqxh8dxMSDGr1nQiYN5LWpyLDl8eRHhHXffZDkNAz6YOQN+7ybsxQT/unk+yTNgNxA+UGWSGjkR5pXFpSDCzuS2B1TjgtSMaGraLWqp+Wbsu3Lttj064UKxRgjRkiM6GJW1q6gH5Gs0y2/h+fPFi8AJ5GcEkneM84;25:05OHfxPz7/s2AupGLYKfs9le+DsYQ0+r6P5fNa/xzprBgL5rlO9Lc2uOyhsRvXGAJsaeClI2xnoldgb6cSq64l69pyZXntvHhF2T+i3WNJsZ27j71pIwroz6+keTm8KIFdlGVkgxzwhCyUb/x7l0mwg/jFbifDEGjC/fM3qHHpLMrKXuRN9QsTJrpYwXz5nxgJbOA6IcqS5XDbPtD6WqbB6PoaU2sAPd0IIXXCdyCkuD4V+0PUvPsXPpgIwEwVMpdM4iZGCgcTMeF0s0WoAWgLXUFn1DzyC/VjD+5oDaqFTJ7I1pxTH0CafXmMRWpYkrAOB8FQa/220sJsVmUvCVCg== X-MS-TrafficTypeDiagnostic: DM6PR07MB4762: X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4762;31:jgCRYetsEXlhlRfM0lo5CBSeAKtGEHwel/zxHeFImz3ZUxSKnbK9Rc+Iiftp+e0AO1VNPlg61C6oB29nkrbCAywWj58BROMz6aH6e/JC0orO20Kae/AR6ag1nUvGoOL5qOwbn+EHQBpPqScu0VaaTs7r7mxh3le2i432PjZBf5MRaBBnql6iXHu8D6UC/Qus8WNbC83O+9Rr/RP9XBUKNQTcxCwE7/WSmLaBp3Z2VOU=;4:fmpAjB6HBasm9sQK4/NB14XAFl1yw6UICVvecnm148tqXL/tSBvSW90OfCasKI77dOFiKLttwLMwQ7U573HBQ5jvuqlgJaBRlZJU4rfUKBuvOk3T6M5wd8oNS8siAQtaBRpqoSp3UUuMERgF9z9boes2xwcOQj2qcBj49kRj2H81lw3NZqTDhNt6vXwD6+tjhTQbTvySgLLX9t6xf96njTg0FE9ZWe0h2gNS1wIzskcez21/W4W9VvOljFA8O9SP8ZjnlBLZ4n5U3w3iFJ0rPpD+ehMesVHWJhgS543F4WI+V5WYkc41zbtzRVF0ekNZ X-Microsoft-Antispam-PRVS: <DM6PR07MB47627119C0AFB1B373BE5379D69B0@DM6PR07MB4762.namprd07.prod.outlook.com> X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4762;23:sHtfsDXchap45XUUZiwSI6tcxhCFXGbcs4URJ7CG2q/cWUHWbzq8s1UTQZdjPPOYG9fB/IwQuVyPsz8wo2ioGpIftItxxAqsmUBgUFYz7X9ylfctVH20h6bZ8KYGfIRfX3nlw0GVmHAryw83X9GBB+wsjTtJFSAi/DYmHl29vH6yUaw9WnW8P1S4z9gemAvIwmitNigmzoCXfT/G38OltRI/E/nmXQuEex6r7+N/yijV+UthS2skaQMT+4ahsZLI7sxPGtyR+xTnN/Q4GxUMjyhgui66RrkQDsjEhcLJB4yuTsr1JwXq7vSS9iawKwGLE7k7wiUv/k0UTML/GDoOd131MzD2u1RaI931eob37GcNpzWn1+/4YOXJlqJ424IwTNAq+YbZdSfZwvoPaZLIh4bqIcTZkTLqcF0vnyT3xl4Au0COQH2uReYvWW1JFhFI42r/RDvyfAxHhyAqfB3M7igvNaOPhMX1G4ewV3jKeInpAuxfLworlD7v4GYf/X2hwM3lD4dszBSR0+VeWx1sJJL3SajYoMbPDRy9ny99TbOM807f/Eawu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wNPIrcTEhfUkE7uGuEFqxIHdCOo= X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4762;6:yCfFJRIdHHmloQadfs5dFc1p7pJQYMwpcO02xowR+sPT8sXXpUrQ8ptTKVnMRCZNPHmqriUBX7mVVpo1S/U/5aKbJv1CFYrVxcFHrxs5CDrFjKy2rMJmU+foetBi3n0tHCfN6VUkx9WGCUM43S1yj0aVss4I2lBGxyawD7mJx/oEll2uxoFp9BmvnsstlaV8qHIYxQPOGe0NpDrPJTgmTP5PsYy2vNwwaY+/vuxDY3pfuoIoofEGwQZo6X+mTX8aTdsA01byCsSQ6zdR9pdbUXfIkrNnwp156oQr8Anc/w0Rbos+6y61ANotxaB4zdMoclJKp8aqKC7eBYnir5z3OmFkr0ZR4ePi4C2zqqkGQ8v0Fgj3alRePSX40AijXBgIp+tTMUy9JVFsxG3D6+XGmWPmWSWdz6gBWWDlPzOHghJYn1pOjRLLtbDHns5xSOTnc9yVfcq4e5+f3r6EjhL2hQ==;5:B5fLxGX7kwZiRLVlbYRxTXZs55SVAweIExBmFAPJHk8FezDmpDqJFYGIx563tmXdJCnoYsafJgs4arBB1IglABtEMxyAznYuPA48Ua8VGfuIRcuI43goZA8EhxcxbmLGbceuM2SKcFKUhmR5ryF9iSyCXkJsS+c3TT3lbxCQdJ3by+h2/bo134dMT5J0PqkQ7/eTjLnBoOwY+TB3rY8FPg==;7:Be+Rim+nmUaE/WwSh1XwnKbF0BDq92uZV64kPBlqpkAQT3lbEXNymLHP3ZhQqdUPuIMtuttMdzfNLBP0XpzrJpq2GxHn32HcANrUzeheJK/QFck0B3ISxDGDBBORg9pTRVXagXEYstv0tDRCwPdO5A== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:29.8185 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82dc09d2-d42a-43f6-56db-08d682964909 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4762 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qla2xxx: Driver updates and bug fixes
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 8507c43b918c..ed4d1d8f4d1b 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -834,7 +834,8 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) * Restore for Physical Port only */ if (!vha->vp_idx) { - if (ha->flags.fawwpn_enabled) { + if (ha->flags.fawwpn_enabled && + (ha->current_topology == ISP_CFG_F)) { void *wwpn = ha->init_cb->port_name; memcpy(vha->port_name, wwpn, WWN_SIZE); fc_host_port_name(vha->host) =