From patchwork Fri Jan 19 20:29:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10175955 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 266DD6055D for ; Fri, 19 Jan 2018 20:29:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A42B212DB for ; Fri, 19 Jan 2018 20:29:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F0E2287BD; Fri, 19 Jan 2018 20:29:46 +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 7E9F5212DB for ; Fri, 19 Jan 2018 20:29:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932219AbeASU3o (ORCPT ); Fri, 19 Jan 2018 15:29:44 -0500 Received: from mail-cys01nam02on0042.outbound.protection.outlook.com ([104.47.37.42]:24905 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756358AbeASU3n (ORCPT ); Fri, 19 Jan 2018 15:29:43 -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=Hk51Kijt457AQGZ9sXLZZo1oT+QyLDlx2wcIptewArM=; b=Yr8vuFb0BdgsSHgburHdJihe4oICq9ZoT+pOfk9vqLHtPhcckgmjWvvRlyhvLbXWs6oCujH5BttXeKSp61wWHnvcA+n55gOd15gF9Pqno0+OQexiA8uhFFTz8Dl02mL0a5cQzPj1Ymue1Dzbrtn5/9dKPxtWtj5/5N57btB+/Bw= Received: from CO2PR07CA0061.namprd07.prod.outlook.com (10.174.192.29) by SN1PR0701MB1951.namprd07.prod.outlook.com (10.163.131.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Fri, 19 Jan 2018 20:29:40 +0000 Received: from BL2FFO11FD054.protection.gbl (2a01:111:f400:7c09::162) by CO2PR07CA0061.outlook.office365.com (2603:10b6:100::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Fri, 19 Jan 2018 20:29:40 +0000 Authentication-Results: spf=fail (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; HansenPartnership.com; dkim=none (message not signed) header.d=none;HansenPartnership.com; dmarc=none action=none header.from=cavium.com; Received-SPF: Fail (protection.outlook.com: domain of cavium.com does not designate 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD054.mail.protection.outlook.com (10.173.161.182) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.428.12 via Frontend Transport; Fri, 19 Jan 2018 20:29:40 +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; Fri, 19 Jan 2018 12:29:33 -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 w0JKTXLN013282; Fri, 19 Jan 2018 12:29:33 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w0JKTXQl013281; Fri, 19 Jan 2018 12:29:33 -0800 From: Himanshu Madhani To: , , , , , CC: , Subject: [PATCH 2/5] qla2xxx: Set IIDMA and fcport state before qla_nvme_register_remote() Date: Fri, 19 Jan 2018 12:29:25 -0800 Message-ID: <20180119202928.13239-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180119202928.13239-1-himanshu.madhani@cavium.com> References: <20180119202928.13239-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)(346002)(39860400002)(396003)(376002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(36756003)(72206003)(1076002)(26005)(69596002)(2201001)(86362001)(575784001)(50466002)(80596001)(48376002)(16586007)(42186006)(54906003)(81166006)(8676002)(110136005)(81156014)(8936002)(316002)(4326008)(50226002)(87636003)(478600001)(47776003)(51416003)(59450400001)(305945005)(105606002)(6666003)(5660300001)(106466001)(85426001)(2906002)(76176011)(2950100002)(356003)(336011)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0701MB1951; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD054; 1:55FHpxIgd9lsS0G5uUKni2YuhFoFi/hTXKSlKh7U/YIEYU1rK7vFHMldQeBHzMA4PmQ09Gfg1/l6q03jfdeTSRVsvpZQgRfDGbElf12VRQiRV4IAPGGYFwCxCbzSYoKb X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c463764a-f87a-4b5c-8a28-08d55f7b5e0b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:SN1PR0701MB1951; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1951; 3:OMH6JVqWv+1IbGDLRZrtW+xvco6ytliD0EwZhtWd4fl+PDw/bXtJu9GEPqj5PhhLu4IyWA9mArCH+cTFEsS4crXcXI3Tw5+gVWaiwLmk3vmIkc2fFWxDYF+LVoUPn2CcOAYBITBC2iHE+qKvblhU9pXnOZhBps8hkgreyxyLluGaidDhHgrPkncgJkMl3mebTuIpa4BmLG9Qi1IwKn+jPgwvKcie2TayYtq1PJ6MbWefSfVQdZvG6xNdb5jFAEpixtdYTQ8TVm+cX3P3ikH1mXUeSmTjaOp0bYpn19suv9ifmGDXrTHroq48wnz2QN7+7Pr8Ji74xGLE1Y2artDQsLZ7d5pE0fKs2fnit460FXA=; 25:5r5vFDaLSpSxzkRT0HdEenHS7IZmhWAjca+BiLqTKowf2C2EyAzTvBt6BFi4bIL6LeejL/WEx5DEBaf64MLY9eMRg83SvkqFs6pp4uTDZGmIyUHmHne6EdeR3W5k1MqZEw3BHti+8s1G6iLcpgWFhJ2r0uOOpzVpKw618ctzl+P5E9YzFG4YGyjTuscyopIIZt7Y+l5uIQ9ExIwg0OVgAfDaBfTST+vo71rXzghK1ugXWGucsI6NzWku/iG/6F1JBM95qe1Y79asAfBKjsQYBEL0Biw3UDyFLIv4H/335Mo3hQMXgyeSL53TmPukgUu67EVCiiULWKxXH38rkiwqoA== X-MS-TrafficTypeDiagnostic: SN1PR0701MB1951: X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1951; 31:eErp8q0xcZxs9WsFBlFsYheTQj/HK8EdxnArAVfiDK14WmOd1rXkd48pTrq15qX1nf5Crq6BeT93A7nkYsG8S6qyfVXwjiUA8mP+u8TG2chx3BpqBBwODacKY4EHdm07XbXPRI7Ibd/5apyLWTeZMA96jr+hBs456UzNm1if6pMbNwzLTV4vNCiDxeMiMN4Z7sP9/bDxmOjdHbc2I0wycDheaHqUD1dbTqelR172fzs=; 20:96IJ/tHBKlxxt1lLfTon+Pqqi2lkUUgB6q/PAz0cBf7DG2NXf58H3slzRBdAThWkeENeiKw+YNPWoLuY5q81BL3UuAgfh2iNoVyy4hkiSLQOfwD8AZSWOs386jam7Q8eMrufkrj2cXHRNxMul+PtgtB6nrnRn9wg4Llzcl30MERL6F/rP9/sVvQHZceBgbadr9mk61bifnjRyaqH/BbGOfUntsTVLJEFrohWflTYzQrmYENgVI5178h1LyjOUf7hQHlfsLr+JP9axhgapH5DwfzbsLaQqOdymi6BHINsL3QJfBRoYSl+I4bG59NBmSmS5SqWTum1XizTh54Ffkq+pBxO4eY0jECvZYLvtYsMKt/SQjKIFyhgrsAU1Lcwp+a5JwzrXP9HNRlKz/CnjBA1YIcN/bXAYQVmYaBQzyTGOcU2SLtRVzcO61lDsJMZtY/pTTljGO20frRqOl8HHlemJRyDtHdXcCL4kZjKEOPgIO4xypvwoD+dg1LHi98V5zn5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040498)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(2400081)(944501161)(6041285)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN1PR0701MB1951; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN1PR0701MB1951; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1951; 4:DqrXFw1tT3QDvUwoFzsuwy3Ex1L2NB5vU9Eeg2cwF6+X0jd1IrDpcjwRQXwQaD6ckeB6YlzMfz2J7yqymzqCGi4azoUovNX0Is1hrfPruwrUBoJUGi4sxyh2FknI/k3w0FbxHTkjJ8Qhy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4ruyPTIW8kRpOqkRcrA8Urgvoyuboitq80mM4RMUqaHdwH6HVGnLMd9qKtStbqFMEeq+qvm9vmo5Q7DTxXWkjp1NKa58Wq5s=; 24:IwDiAia8QPKH4sJDGcNIajwgrokRu782rYJMJXmxuQsMRyRxEPyENiEslKZF5HQRE4VwQn+IBxf1EoQJoIBumFMBo62r4MTWJhHiQRtoJqc=; 7:7yZrDVr0wXubr6yMYB4C9vyzovZCCRLPIsAKZk143xl/ghsJypeJ0ybGX1cmdKj7BQefaYGVaeXYPqzbxkXuHGCwUzlmI3cKQiEDEQQwUPNrD3eIfdXwZk6p4vAwC0he23xa9OStOM7pNg4s4hpSPyIh0odDNWTcMri7CWTL7wSF4JV/n7SMjj62QgSIWFNqFS6FgBNDiu56ybpb4JT11KIbH+BhgKWNpjQfsTmhdkcriPBREhDRNFszvA7VKGVh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 20:29:40.2479 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c463764a-f87a-4b5c-8a28-08d55f7b5e0b 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: SN1PR0701MB1951 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: Darren Trapp Signed-off-by: Darren Trapp Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index aececf664654..e7e51ac0bb46 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5106,13 +5106,14 @@ qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) fcport->deleted = 0; fcport->logout_on_delete = 1; + qla2x00_set_fcport_state(fcport, FCS_ONLINE); + qla2x00_iidma_fcport(vha, fcport); + if (fcport->fc4f_nvme) { qla_nvme_register_remote(vha, fcport); return; } - qla2x00_set_fcport_state(fcport, FCS_ONLINE); - qla2x00_iidma_fcport(vha, fcport); qla24xx_update_fcport_fcp_prio(vha, fcport); reg_port: