From patchwork Thu Nov 30 03:40:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10084197 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 5B046602B9 for ; Thu, 30 Nov 2017 03:41:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 519E829935 for ; Thu, 30 Nov 2017 03:41:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4689629B02; Thu, 30 Nov 2017 03:41:24 +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 9BFE029935 for ; Thu, 30 Nov 2017 03:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbdK3DlW (ORCPT ); Wed, 29 Nov 2017 22:41:22 -0500 Received: from mail-bn3nam01on0079.outbound.protection.outlook.com ([104.47.33.79]:23840 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752980AbdK3DlR (ORCPT ); Wed, 29 Nov 2017 22:41:17 -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=UTFNOhc+2+hgXQNUD3fs1NrzL0R8efEKIwqa+BkdtqeO2OhXCvjAK5dodhgT2etCnYsY8UkNG6zQ8Dcep/ecfSxDi0cC0TMUQKI9Ob3HJkUTUavtv3c3yA5SxwxlL32xjDJQjCKUgBMyMepLLZGKvGz+K4d/rpaIuK4Nb3Npnoo= Received: from SN4PR0701CA0013.namprd07.prod.outlook.com (10.161.192.151) by BLUPR0701MB1938.namprd07.prod.outlook.com (10.163.121.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 30 Nov 2017 03:41:15 +0000 Received: from BL2FFO11FD056.protection.gbl (2a01:111:f400:7c09::109) by SN4PR0701CA0013.outlook.office365.com (2603:10b6:803:28::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Thu, 30 Nov 2017 03:41:15 +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 BL2FFO11FD056.mail.protection.outlook.com (10.173.161.184) 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; Thu, 30 Nov 2017 03:41:15 +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; Wed, 29 Nov 2017 19:40:51 -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 vAU3epbK015170; Wed, 29 Nov 2017 19:40:51 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vAU3epYP015169; Wed, 29 Nov 2017 19:40:51 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 16/22] qla2xxx: Fix scan state field for fcport Date: Wed, 29 Nov 2017 19:40:41 -0800 Message-ID: <20171130034047.15070-17-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171130034047.15070-1-himanshu.madhani@cavium.com> References: <20171130034047.15070-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)(346002)(376002)(2980300002)(428002)(189002)(199003)(87636003)(8936002)(478600001)(101416001)(356003)(36756003)(72206003)(2950100002)(6666003)(305945005)(48376002)(50466002)(50226002)(189998001)(50986010)(76176010)(47776003)(106466001)(54906003)(8676002)(81166006)(2906002)(81156014)(110136005)(16586007)(316002)(42186006)(80596001)(69596002)(105586002)(33646002)(4326008)(1076002)(86362001)(5660300001)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1938; 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; BL2FFO11FD056; 1:YZT+hlMKzgUDQbr4rJFMBd8oKPXYFT+Esxwf8yqNeEsuW0Xyngo/v11Etddze0sgyK8vGir58I3AU1sVAz5YqFan9nb81CD7Ci0ukjrLgc0Ve572shY9AuOgWy1zx21S X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b1a75e8-ec7e-4d7a-ae8f-08d537a43572 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603280); SRVR:BLUPR0701MB1938; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1938; 3:rpRMGB58aWdNuAxrhXX6efBi4j0xQXiClh/3h7BoFfXF3ScoYaHk7eQ7zlDps4iHdsLJm+SIoqJ07fAmDVAEw9DLfELkpXVl4g2GcQclxwcBwtDsAvm44c/domx7xtD9QKQuOqNyxZjigZnyUjDxYGUmg1qX/aczfPPH90zZikb3nvn5yAFlHjvJIx1/NpeNFRDz1WWLlryZiqn/kIY/3cAw3slKjGHZR3vwciwshXA3M0JniXXeLa7lJ3q3UFu+bcpzSgnWZK9Q1WZFVEkRrouInqWITPpPov72pYd19F2LcX8UHtetbiZh873b+y3/TLlbOEDu9PrvkntdJ/dEH7v53uYEzywQ8XpHYy5KUao=; 25:6s+ISlA0UxUNQK8PfPYS+GZqlt9f/D2fpecA0myfGrnwkmwPkp87v1POxdwBKF3bP3b6cgmA1567cPyBsBvF0ZwCzOwM561oEPmS+k/D9urVpSbG/1cr/MBezfWsL5sLUfDP9hA8HVeri/hiPQVXKD1Jjk4MP5zYRPHJwJVR+5gftGc7yljPKj4B66O0q0dVkpow/1z81oz+T0A2rwrVHEzifFRl5ta0cX3XSEyC2Prl3/RwWpupJZYLUv4FBllIz2chQpANd1F3GAv3GS8NDP4D31E9ABPg3SRxTljeoNE7+iqDhXZ+B8gKNi4oSnlTm+fZ53F99WwY62hdJRshOvQgk2gdastKY9rn21ZkBFA= X-MS-TrafficTypeDiagnostic: BLUPR0701MB1938: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1938; 31:gUuo2f0ZT/3AuG6TFkIkuiixFGv+lo2cuJyPFD7z7yKooKISEsINCR50iCsb1xH8s27iz4slc/DszVXsqFz1CiJVu0ZIjrOax6+H7UPXxtqIZSIeC87qrz7odzzo2sZmhg5chqiEPyzpaDAhHruw0tJJXepryGH1Z5gOkI99utHgidn28F7GGtDxC0idBwg2zJV5AEquGkaCy5kT404IVa8pjU/5yeaRRmxeD4zhRYg=; 20:Oue4KrGexaGzdd4J0BxIeokYlPvofuHFBhMdQUuLLG07tRuO3TYVN9RyVHhgWZaX+g/WeDUrYUIKA+forRHTop+yvX74GLYfJCb+J2GopmdAjwbXt9zAUbXDh8JRNh0HCneZ03TGj1bTJg8OEZ/z2O02LvKOdW8Yp4GYPBgzL36C4TILVuNMaAAVRQXUR8pF83pf1oLWRc24z0oUuzRMiTHUcMvYrsSgwvVZHo8lSPohTLfUdAQ/qo8GiS+zH9EeM74GcHOQ2VCPa1UJgqbLVPuU4dP7ZS7N2dr99R1k+oJc5Rfrxt56uXRorys63Z6qbN/eYbUx88WyE+zchgXIrSyH2WXIx0TR7cQORf3uJhBAp1yT7QFVBXsx8D3Hcn3yAGAHx8aVocQ35SwmD7cv+69+f3f8QSCpYVIFOK2h3tMSYinUQKEs1cvVrSRDspquKuJ/EnTBYuU0w3i8tvCWapqJ9XlfgGJy96sT/Y8mrZY0hgOhLlLm0HugEMyZwe33 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)(93006095)(93001095)(10201501046)(3002001)(3231022)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011); SRVR:BLUPR0701MB1938; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BLUPR0701MB1938; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1938; 4:a6m4PLgSzG4pfy311eh15M5zM8B7m5MzWxWo0XqnfWVgjPu8vHEB0zOEHENb6HFUwCktx31ltkVLxRfP1D8bLHrCa5TshHvQTOBkYlX6QnjcVTQLiX3+0AnigzJ8+lvBf/ubfhLGxs1JKOeoy1qFoAiKFbKK5yMeRh5oDjFN/II/pXKSEkdm/atEJlxGlSDv1SdLfdpz6itdwadARbzHp49nHlnQkTQ62UrU2LCQPSaTt6JY+IDC8SSsSbuIUZ+SvEuj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xk0RGly50+xfVOyumN59faE0JH6TmHBUqpaFh1x8on4fZn34yevh/zBAKIsZRPHqPQI74AeVeKo/Cqc+JoGBAjjp39bhY9nFnBobUQfdCSVWNLC1zPN63v3vFdDc7QXO4jS3pwfvzAfsT/QuUBNRDfzGb5qr4P93uBTbqi9sNvVMSOGXNaXzeHwx+4ykk5CY1bO6QjvHn+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2017 03:41:15.0077 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b1a75e8-ec7e-4d7a-ae8f-08d537a43572 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: BLUPR0701MB1938 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 Reviewed-by: Hannes Reinecke --- 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;