From patchwork Thu Jun 7 05:19:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10451155 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 E99A960467 for ; Thu, 7 Jun 2018 05:19:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA52E296DB for ; Thu, 7 Jun 2018 05:19:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF6DA29865; Thu, 7 Jun 2018 05:19:56 +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,DKIM_SIGNED, DKIM_VALID, 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 59BF4296DB for ; Thu, 7 Jun 2018 05:19:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbeFGFTz (ORCPT ); Thu, 7 Jun 2018 01:19:55 -0400 Received: from mail-sn1nam01on0070.outbound.protection.outlook.com ([104.47.32.70]:63520 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752564AbeFGFTo (ORCPT ); Thu, 7 Jun 2018 01:19:44 -0400 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:X-MS-Exchange-SenderADCheck; bh=ZmA0hoA5gFGSxyzvNVobw9RljTkfk0vhh3bmdW4JDcU=; b=hPrWRT86xjIAWB7xeBTgxwbUqaC9RaQrMBmGO3+wP4XITWmDYguF6k4NfKs102hYPFdyaLMx6drXaitomDvEFhU8Lmf/hJ53UoAiuq83okcnxRMveosszMEpq8XvIQoMqgZI8pWx3WJbeEsicEMfxBnZ8rBHB51VdWRe/xqKum4= Received: from BY2PR07CA0090.namprd07.prod.outlook.com (2a01:111:e400:7bff::43) by SN1PR07MB1519.namprd07.prod.outlook.com (2a01:111:e400:5838::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Thu, 7 Jun 2018 05:19:41 +0000 Received: from CO1NAM05FT042.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by BY2PR07CA0090.outlook.office365.com (2a01:111:e400:7bff::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.776.11 via Frontend Transport; Thu, 7 Jun 2018 05:19:41 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 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 CO1NAM05FT042.mail.protection.outlook.com (10.152.96.155) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.841.6 via Frontend Transport; Thu, 7 Jun 2018 05:19: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; Wed, 6 Jun 2018 22:19:29 -0700 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 w575JS5o028015; Wed, 6 Jun 2018 22:19:28 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w575JSon028014; Wed, 6 Jun 2018 22:19:28 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 10/12] qla2xxx: Fix Management Server NPort handle reservation logic Date: Wed, 6 Jun 2018 22:19:24 -0700 Message-ID: <20180607051926.27940-11-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180607051926.27940-1-himanshu.madhani@cavium.com> References: <20180607051926.27940-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)(39380400002)(376002)(396003)(39860400002)(2980300002)(438002)(199004)(189003)(44832011)(11346002)(476003)(2616005)(126002)(446003)(486006)(51416003)(76176011)(42186006)(48376002)(50466002)(54906003)(4326008)(16586007)(316002)(36756003)(106002)(80596001)(47776003)(336012)(69596002)(110136005)(186003)(26005)(59450400001)(72206003)(2906002)(8936002)(305945005)(478600001)(5660300001)(81156014)(81166006)(6666003)(106466001)(1076002)(50226002)(86362001)(575784001)(87636003)(8676002)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB1519; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM05FT042; 1:VkvPN5s8LFVL9+nh7lHelFPK75+8bfHKYxVBjK+4OwIbnbgm7eiTaUEmjc1K63VrJ2sSaoTCGnQAnw19AnsUSXd7Iwt/4610Bd9YxLpswYwvC5Q8/Qx62Qfi5QeOqgPB X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4608076)(2017052603328)(7153060); SRVR:SN1PR07MB1519; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1519; 3:ciq+zv/7OTSCZKPzsbYUekX/msSJyTX4mOoKBmGvy6lbrfZmWWejNfU6Qm/STGcbE3XFSBLAIjCY9b2mXPg/f/WODfgpnvqhvAsLEIGz6EFsA6wrGkdFlKx9dyXCdGcNqN7qj3m/RGsTlvOQN1VTkkWvZ43+5C7E45ZunzudQXUEOxUHtScXAH7xQHJ6Z51xUIKCWt27P2ekXkV7PxMPriCoGiFd78+/nXt300OY+4Z954j+3JeLUvplJijZ6ZdTbFbHAQyN6aOrLV3TPDPc6MlqNASIhg22gLpPjNuOg3afdq1OjYfkZJUsQD+IfyVV53B3yCJsDCLhgzt9QPqhsYJ+V7bqMQuSlh//Kvx8laY=; 25:kS1HtA5CmE9Na5ywVsiVG3xds9Z1bLKOotQCa1VH9Djskl+mNsZstZvthhFZiQJEXKhCMUjm7nqCDxwjrRBNTc3oer12yuyJeY17pFrxWMtej4eughsdTYUz8Mc/jO+8+dQLsuQjDrtf0q1GZWaCbM18c0JTjtoiSUx5LN+F3r6hgksye2owO3SY4lc8EN/DS4bqKBQDPRrDsWZNRHJAlO1B0m3Lf57hjdon8p3C+lpfJb8epom9weCTGtuZ9DQs5K1P8+7622DFDcBjkPJMCf9WIJ3v0Jrf9vGsEWo5z2XI8gu/9CpyGXdFMitMfGiI7dZGe5xqTicZ7ATfVP0Mjg== X-MS-TrafficTypeDiagnostic: SN1PR07MB1519: X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1519; 31:HD53XW6STVrE1GKPynMEjJdGR9GwxYoLkPk6gf7BH3pPY1ThE0U/djldk5CgyCn2N6St+EmdNMS32qphX27q4gOVts5wePC2/Mo56nhpxCp3onbE/nRqNZdwte4CfOrXjYl2n9+l2GbsIn5DDiNgbkDiUAL6HeHSBSpQ1hGp2IqmlFKiP5y2L5F/3qzZdAlUANGi2Au1p3HN9Nvufeo93nRfFSfUsU40l4ABQiDje2M=; 20:FPd2ALdG1f1mw+OVBjzXBrzu6nzeEEX0qtqT7I6O1QpgvOpnkbFykXLvgAnfNgMlTb7AUZ+88vgFWlcEdiMh5qZqfDVc7ZiUGSosATdSZh1KnDdykvjuIKt3ttbGtz90rdjO2E4EYgkwtUTgkH6SvPnRe5SpdKFV4lIsKrXjsIPgPxHZm+/LL1Cj8qpa8975APTDGsS3Kz2dPsShB/RJS5kdtBDa2JjIzbpiVKeZcu3VfzeHXxL+ABxc3syp5I9pR/dVZSmL38U5Ez79EhDaY9Plqn5tPN+N2GlJXpG7LJrd9VunY5TZvwElmiwIlkw//E41RtQBDfmwehMvWLabw5iodsYX56stb9SnSe2zxOgGRweqECkECXLXdqXJDYdKaxcFSyG9MqTwee0y8rmb42UQw5aZEaB+4nklZX4GlWG9VybnpPbqMuTn0zbwl3acr796yU8BE9qgsGGhBERS8bWska2PzUxslSqMbwDcBBzw93Ap5G9PO6Q7QvCjhTjI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93004095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:SN1PR07MB1519; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB1519; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1519; 4:yw44GQRj1JpSWqDa7UTAdye66zYI8ZiMwKrlQnFo1xDnChJ3gueOFe+OwECbRD9BM/ER2Pr08HSaz1TOKJEkYPAEVYx4Bc3vQrDOvNgSH1Em0xhy1rvgQYnd27VUDl8q6+AF5P8TjUMMuaV885JjIqg+wfsW0EJgluY/A3P/pjUieUYUY8zHTAT8HG28Fo7Mj/oiolt7n46R5jUoajpk9tQ+mrAVAT3uaETrh8Is5Z1R4t8wtGq6kDobANHvGYm0S4gUc2ykQTVC89p1uIB8QQ6sCElkKQKfbIpYpNdpisTpBO2YaOPdBWm1kA4QraI3 X-Forefront-PRVS: 06968FD8C4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR07MB1519; 23:+j4nCTyXfHOkahweBt0t/cAqvcT/y3tvWf6C/fSmo?= =?us-ascii?Q?eFW0rBOF3je8UTQ+M1eKyJSSTm7ATv+QpkzYjI38eUUalfaFDSPd+er6XgXY?= =?us-ascii?Q?x7iCRaOR6HCoyB/rkYyfGXYLbo4cRQrYH2lcV9A9Hzrfuw5qWDGTM/uIFf8D?= =?us-ascii?Q?DSYNq2ajKuTUr0xR4tmrrq3IJMWlch7CXu9VcSmhRIXCaAv8ieqxPWIE6KIm?= =?us-ascii?Q?rNnpAxM2A64Ni+j07iTqJlcVh9eQ7MySlXVZ8PJXXe39wattmd2YOZ9XcR4a?= =?us-ascii?Q?2kX80safSSJ/swVO4OB1y9iu1ZOf/OezOh/oUAdQqehrR0tEVGQpfzVYyNjC?= =?us-ascii?Q?b5Qi2s18C9ZT+ZTd59ghFK0NbVO9895U+jErZQDqSPll4DsTdPFfw4jUAtbx?= =?us-ascii?Q?KoG00PuDlZK2N7eyMqKbmymjns71jzvAzUJWHalnCAU114+mL6In4Y/7AUNd?= =?us-ascii?Q?UQatKtxHOzlMeN5DoWT9HyxWaiUM15kcZthBM8MxV2fSBbwJ4hE4PkWCXLyW?= =?us-ascii?Q?ggQBow4CGc/u8JewmaCgeftHNtk1ejby34rBMoluHl4o5YUV18eTTioCogdw?= =?us-ascii?Q?jAzfAsMq7EQO2UTDAtd1UcZzG0j2uOcuiZrdgtBrWewgVuQ8tn52xhk5Nh2v?= =?us-ascii?Q?vRPkY6fQLCdL0MDfsoSUM2Ii+nPzeQtZPEQvgs+hDT0RMlDiEPdIHZL9kLVs?= =?us-ascii?Q?OOsdFkrfGmaZU2fF5Dx3P6g05GI/9noRiK4dbCHXt36uTPwnARgiPwFN5Ww1?= =?us-ascii?Q?Ff0C4ELkN+1Z6vtdGIERJqzLqwVOI+j/dwmysxDCilFLSMEcsDcP/tR0mtFe?= =?us-ascii?Q?58xYNFCNNGasFcx4BPp7Z+NzFYIjAEIeTioY+ndrbmBKsYPNyCZk0kfseBUu?= =?us-ascii?Q?0CG0FH0n4cseDKgktW5/n09I7agEYACmIJjfLtyJ5cg9S3HX636cCsu1C+yI?= =?us-ascii?Q?ehXNAAnsjuziB74uJW1s4VJpz5XCqd2Up9jXquVGa2FiObqik2JybU4A7S93?= =?us-ascii?Q?0RITVZPHHvm15n64WJB6PftIM6ooQcYUermZEXZhlrNI4+EHW+xg1+h7WaI+?= =?us-ascii?Q?jf8ff7NDusFJg2GNWAg2fA7nmYBUTENSen3f4OcwAfRgvjJPrCcnNKbPt5vw?= =?us-ascii?Q?3CCpAogbW6SfdAh/hfEq0yg3XfOzUas+dMIFpOUbyTEpTMBpcCVRYXzdmLLi?= =?us-ascii?Q?6L69dkjMX77n0Y=3D?= X-Microsoft-Antispam-Message-Info: 7z4VB8FbZGc2muMwHXv2lQPMRoxq9j2jldtuI3ryLqwSBAch7jgFlFrrWKTIOQeZ43T1ZHV1J+u7e5/Z0GFpFPGXp26QblRJIezVam4J2s/2r/dNHAzLaVPEOJFMy0y2D+K7xd6RHuA/KdFnPXNRW5wXn98I0LVLURfp1qX0mKlAmppwaq9vGYPT8xlwKDTO X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1519; 6:OZiqgNrb1/lqb2JqeiDyUeBB8jeWq6a7FkDCik2+n6otgiFLq+TYVag03rgObbF+u8O7+pn4iqhTBBXWDMDiarLjxqU9i3oJl8cs3nAl4EofOqgoDgI8v8K96r/Wy1s/qN0/LYj+U8ZqthQ9Rk+OSXEITdHR8Qb3rxJVUeI+a5Imx2iqY1j8T9qQCiFibuXY1+Gn8zoYO/q4K8yAF5flUnVsQPf9fD3QBJYkVjI4rWpPXbsMRcKjnvsGubsw3hmtItSI18pHufKUjxBiP4tUReb4y7LGL+4Xoy2Bl57/tN4hddBk/Oj5lJx9nwe1I9Xqu9VLpw7s/vf0F0WyiTvDCW3mf6MIxOTzizCwI5qojstyE1UXm13oTaLNYLHFOg1OQiccRPf+wt48pBhmWr+jHHb597wfVizoYGTI/AZPqE8IIV1LnUTYD/nFsOm6ULW5pVjRQdRIg37nm7qSQMwsZQ==; 5:7StZMHhmIOjFV5EoSfyzuajGGpZ8JHQp+hWjSIhQvvq1a9SdLgNXbOyray53QjKMZre4LSV3covISMcrBmOjUeTrBonjZYcqPqlfFiaHr1xtH9+9OFNLWsqU9YX5LzpYof6QpDyftqqiQAxzv5S+6P4TDLR0wP0WzQq/8v3a7Tg=; 24:O5L14trFdkoQNpMBQgnZ06D66HQjO5fGW7NEBoZivGQFi5vacDFEtSZ86g+MJBOjqPw7W62yhv6adah8DxxxBGgRQk6O/W26aRGnSSa0cVM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1519; 7:8NJUZTzV62N6sY++mGvceqkL2EFyjK9ogQFnZJOBjFwhYbJJqbEBdLUTD1HHwf1R1nyG2WOg3efjbQBOT+aNJCXaqgQt9JweZeHcW1b7LO6uV5SrEoyvB32CHKxmwgtidklr+kWmZHGlrEhH+bLXrjwQKoyMyUOWUR9LOYsidezN0YL86FZyWY2NRs1MVAuGD5N6xb69LxRTn/p1e8a3GT7sEI+gH1EUniToRgIag3d2PPYiO+Hm56zefNJ1hKOP X-MS-Office365-Filtering-Correlation-Id: 6e56bca6-2b3e-4083-1bcb-08d5cc3645ab X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2018 05:19:40.9435 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e56bca6-2b3e-4083-1bcb-08d5cc3645ab 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: SN1PR07MB1519 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 After selecting the NPort handle/loop_id, set a bit in the loop_id_map to prevent others from selecting the same NPort handle. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gbl.h | 1 + drivers/scsi/qla2xxx/qla_init.c | 27 +++++++++++++++++++++++++++ drivers/scsi/qla2xxx/qla_mid.c | 2 +- drivers/scsi/qla2xxx/qla_os.c | 3 ++- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index f68eb6096559..00fbd49a9a7a 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h @@ -118,6 +118,7 @@ extern int qla2x00_post_async_prlo_done_work(struct scsi_qla_host *, fc_port_t *, uint16_t *); int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); +int qla2x00_reserve_mgmt_server_loop_id(scsi_qla_host_t *); /* * Global Data in qla_os.c source file. */ diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index a08502eaa789..addfc53a7bb5 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5723,6 +5723,33 @@ qla2x00_find_new_loop_id(scsi_qla_host_t *vha, fc_port_t *dev) } +/* FW does not set aside Loop id for MGMT Server/FFFFFAh */ +int +qla2x00_reserve_mgmt_server_loop_id(scsi_qla_host_t *vha) +{ + int loop_id = FC_NO_LOOP_ID; + int lid = NPH_MGMT_SERVER - vha->vp_idx; + unsigned long flags; + struct qla_hw_data *ha = vha->hw; + + if (vha->vp_idx == 0) { + set_bit(NPH_MGMT_SERVER, ha->loop_id_map); + return NPH_MGMT_SERVER; + } + /* pick id from high and work down to low */ + spin_lock_irqsave(&ha->vport_slock, flags); + for (; lid > 0; lid--) { + if (!test_bit(lid, vha->hw->loop_id_map)) { + set_bit(lid, vha->hw->loop_id_map); + loop_id = lid; + break; + } + } + spin_unlock_irqrestore(&ha->vport_slock, flags); + + return loop_id; +} + /* * qla2x00_fabric_login * Issue fabric login command. diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index f6f0a759a7c2..14bc88bc4a5a 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -485,7 +485,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) "Couldn't allocate vp_id.\n"); goto create_vhost_failed; } - vha->mgmt_svr_loop_id = NPH_MGMT_SERVER; + vha->mgmt_svr_loop_id = qla2x00_reserve_mgmt_server_loop_id(vha); vha->dpc_flags = 0L; diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 6bdb9cf38b77..74c0585c498d 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3048,7 +3048,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) host = base_vha->host; base_vha->req = req; if (IS_QLA2XXX_MIDTYPE(ha)) - base_vha->mgmt_svr_loop_id = NPH_MGMT_SERVER; + base_vha->mgmt_svr_loop_id = + qla2x00_reserve_mgmt_server_loop_id(base_vha); else base_vha->mgmt_svr_loop_id = MANAGEMENT_SERVER + base_vha->vp_idx;