From patchwork Tue Nov 28 19:34:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10080951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 674E1602DC for ; Tue, 28 Nov 2017 19:35:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B618289B8 for ; Tue, 28 Nov 2017 19:35:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 506282964F; Tue, 28 Nov 2017 19:35:38 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 CEED329638 for ; Tue, 28 Nov 2017 19:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932170AbdK1Tfg (ORCPT ); Tue, 28 Nov 2017 14:35:36 -0500 Received: from mail-cys01nam02on0055.outbound.protection.outlook.com ([104.47.37.55]:64085 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932146AbdK1Tf2 (ORCPT ); Tue, 28 Nov 2017 14:35:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0fCQvqMztQ9UwGXvbyudnjCSi0F5foclq+u2FiD27lk=; b=jaIHCRCcdx1HeLR+ToHqHFjpi3XZCA6iRLBV/Ul/draUVsue2PK01zubeE65AH5TxfojzOnlNBhiqd6pQLoj1LqQmGcWGCGoGZZT86xbxOzmUo0P161lnNRGOYMmKDDLp1rksaJ+qyaV0LerSgtAIcRldN9am2QZ8XZ7GfTEzeI= Received: from BY2PR07CA0098.namprd07.prod.outlook.com (2a01:111:e400:7bff::51) by SN4PR0701MB3821.namprd07.prod.outlook.com (2603:10b6:803:4e::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 19:35:26 +0000 Received: from BY2FFO11OLC011.protection.gbl (2a01:111:f400:7c0c::127) by BY2PR07CA0098.outlook.office365.com (2a01:111:e400:7bff::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Tue, 28 Nov 2017 19:35:26 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2FFO11OLC011.mail.protection.outlook.com (10.1.15.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.218.12 via Frontend Transport; Tue, 28 Nov 2017 19:35:26 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 28 Nov 2017 11:35:07 -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 vASJZ7xt013794; Tue, 28 Nov 2017 11:35:07 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vASJZ6mm013793; Tue, 28 Nov 2017 11:35:06 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 16/22] qla2xxx: Fix scan state field for fcport Date: Tue, 28 Nov 2017 11:34:57 -0800 Message-ID: <20171128193503.13695-17-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171128193503.13695-1-himanshu.madhani@cavium.com> References: <20171128193503.13695-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(2980300002)(428002)(189002)(199003)(36756003)(105586002)(72206003)(50466002)(106466001)(48376002)(33646002)(87636003)(478600001)(5660300001)(51416003)(1076002)(305945005)(54906003)(189998001)(76176999)(110136005)(50226002)(8936002)(42186006)(50986999)(69596002)(16586007)(6666003)(81156014)(2906002)(81166006)(2950100002)(86362001)(8676002)(47776003)(80596001)(316002)(101416001)(4326008)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN4PR0701MB3821; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC011; 1:RYKyGzFNFSujoCewEj7spTIGVBz1N2hTUu3CUzGIbSTqa37Vpqu8Fmoajp2Ea8/SNQOYkBCiZ2Nbzet6F5PpVBpcUCkR8Ex824nO8vbD26h24MIM/p7m5XgAqfn3rrdm X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f3d93417-1ab5-44c7-693b-08d536972cd0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:SN4PR0701MB3821; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3821; 3:Kte7zXohNOdB8ma78OWpV7oLp+WTdpO2STR9xfuwS7cBXiDfBdBUvGPSSC9IZyNsJF/dgOsBHek+zUJQ6GKuPLS5Bw6JIQxDs3SA8Ip1HcYqWUF+EIA0DxE3/SrQyNm7TkK65D1zsi6s+WFippq+NV91EbEU73Q8xd7V9wsS3flQ5S86QBAcLS6xJhaobLBK+EONy5Ts0OVac1Bp9vK5Z80GRQDLOLj4YxeRf0msMlu8i14CCvb8lYhmzp4tQmVMIE5qANHnONH1ihJN1edJOvcpLVMbyGYpEYbR+dWhk2rCvSRcsJ7suhBNKzUehzTReUwnNYdGPeN9c7pyrCDdf4C3ZhKMoWSxnbLkITcR3aU=; 25:EHCZqefq2kbpto33fYO+oWQLM03+r+07z9ftdX8vvcOMwz9zxVP12l2sBIyKIgo8ED3pv25rYW9eDp3M+IPXpqFhZqTPa6yfPFzCjBO6qdEHyh5n5oRXNwp69IbXn7AlxCsND8VQmoIX5MNgAYXBOzIjlqS8brHSccXfvhnEvkNsZX5B1/PF15rpbZi17dZmKG/R4T5RI0F6z+iCA7N0FopQOlNwY/PoYFxfVk9g1h/21RtxZyAa6jRQpqzOubDQ5vBRh0CDMnXvM2Q+P5ae1q+nPkeyJY1HCTeu5dXrvncJIG4cRhBdcj3XLrdiTmfkdJygzXaXAtffh7a6xfts9g== X-MS-TrafficTypeDiagnostic: SN4PR0701MB3821: X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3821; 31:8dZdfDx+CgGM6X7yZhpsPRhQR+CQ70rffvANzlhJL8jqKOc7PoOvxmS8fQCWsjMCXSHLdwrnc3w0/1gtvKiuI/6vhcfOb9ypXBlmfrB+d1e373Q/JeSrRH8c+dfH0zpbjL5wEo9TyB8FvvvZEhAa7U3jC16PygFVYq/716QtZvkRlldHCfV2GOJaGLr4W+UYiH9xoAX7mShu28ovkshyLhMzSOrxD/8meX+limVosD4=; 20:gWsCYy1P9BzMGtb5RJCIF13CUeRATx9K3MEZR5w2V8KaEVpsQeU9q30P11e3ntJbJbBsdHxOyYSMMOpO9kTzC1+3OLqLFWjRgSSmy66J7qXn2OT8p+76I8YyczrWrAg9JQrxcC8cku85NX1o6FLyqKnb0L/OO+M3O2SvWNVVEkn0KXVvlV7rZBAPoHyhAHRDujEunnBLii9HutPnbALYH1YKuMxh9uj2f3WBZNTTj02hfTeh5PHQzFESgz/kg8s/m3n55hTRgIY4uqhvvAX1s30Thx03/6v7OgUZ0bKr5KI8FhKXG+om/noGVS4ItQbuPiDslhbR4hkbPBVgk8lTeyj3DXyUo3moVSfJNd9igJ256QA1v7eZRFSVsr6cHUDol68Z2URYj0SQRdeVjFvaHbKXlwWa89gvbIdi3GwBqAe1aPHbUuKqmpUsRPYDxm8bIQAPbvQ/bKf0OOz4myXdg/Fd/STuSY4eP6A8Nm3HEp4UQIi/1z5HIl3qrF27ap6X X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231022)(6041248)(20161123564025)(20161123555025)(20161123558100)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN4PR0701MB3821; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN4PR0701MB3821; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3821; 4:EXQ8NLVpdkTAaD/cDQA3sk7CjAmzh1JzsBD5LY0TUjJ2JeQhqU3wMGDuhOXDnjZTc6o+ZcBNX/+eoF4Ybh8uGbkZETxzWaoArjRHTe7+SnwfcCOksfHHpT8NgBFUqTkccrCUbSQNIlpY4K5goetvfa03Kk9sluoDLq9eZ3d4nFQLAzUg24GwPMaaVU/xxys7w9ZKIfN0Xn9VmEey4y96UG0GRtvPbGkOnLzLciPfl0fGQ10xkzPQ5l3tvzXPW1Af1Lrebj4wrO9T8UqaJspBHsxRFdL5Fhc8tG8vbngPTvCn6l12yMD9CXEusO8gX2MQ X-Forefront-PRVS: 0505147DDB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN4PR0701MB3821; 23:LJ/fr+amnmkqdBVhsuEprLHVpHupmjGNHoTIkBw?= =?us-ascii?Q?OAMV396DmkcIarGbJePi58pPo/uGB2adVcJyTlmZKsnVe/EM7w7H7kFtyC5i?= =?us-ascii?Q?PeM0/VvTw30K0zp2dfYXZnXTMuaktXRM3/etaLlqNNWS/KJM1WicmHwmen4b?= =?us-ascii?Q?wWlpin9e5uWzLARpj47tbcirpGzwqKx8LG/EWGS6aaZoEdT6UxnY7CqsLNN3?= =?us-ascii?Q?3lazSyGpKBzBFCoEEnF038vPDW6mx+jveuGnX2JEg2H2zXxpm3yf8fMpo+MZ?= =?us-ascii?Q?O7JjAS3QLXbvCz3zj7mpoiWXgfh1w14UM1318zcrzqa9mDpkRYfV/3VhPsUv?= =?us-ascii?Q?sSx7IfdXm8Mz25QHl8DCr9Zp9ZNsmquDmUgx1zT/5xeTGOA3+ZLseQjDF6P+?= =?us-ascii?Q?d5qNYQ6DenBFSOgOI2PRCAJlF+6rVxnZTqKjgwnnHyHICwCG1sMbjhuRGQ91?= =?us-ascii?Q?drTORzFIGi3m6yejvKBUXT1l301eVy3S1M4Pxebr5t+OIIb11g5IEathKZps?= =?us-ascii?Q?JMTfQuxizHQpkxiAJC2frguugeYxjrop/twmO0+bgR6vqKy/dCs57y8Hs7rz?= =?us-ascii?Q?fD/WJIzY2Rm8t2CQzfUhbPSxNLkXVcVcfh8cmV08p6/SFUKziGgBO+9inmz0?= =?us-ascii?Q?7bOm0iYISFo7tVuVNx4gySP5LHy4y7WyQe0vn9YLx0f9xh/GKYdR+k4LI9Vu?= =?us-ascii?Q?awHhEIkJ5sQC3mNKpfKCloUEQT//M9K8NZM72C5e1yUkiPE57bWgvzqD8MDK?= =?us-ascii?Q?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Wxz2lj3QFYKIhNPP40Uzd6VDH92+EZcn7Yep8yzXOVQvk2vgSFrlUG3gC68tI3u8iUWi53nMMdY+1ObQopMVGj4/4BzYxuWvumG/mW3632Gxl8hXxpBDrIqjs5urBN+1cHmrui+Qfq7OkjUY8IpAJ91O0/0o2QTYnwGlLxTM0eW84zsICdtrQWyTi6yQbPO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 19:35:26.0270 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3d93417-1ab5-44c7-693b-08d536972cd0 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0701MB3821 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Add correct value of scan_state field indicating state of the FC port Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") Cc: # 4.10+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 2a6242d97a7e..1c219998ab60 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -5812,6 +5812,7 @@ static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, tfcp->port_type = fcport->port_type; tfcp->supported_classes = fcport->supported_classes; tfcp->flags |= fcport->flags; + tfcp->scan_state = QLA_FCPORT_FOUND; del = fcport; fcport = tfcp;