From patchwork Mon Jun 26 15:59:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9810015 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 21B8160209 for ; Mon, 26 Jun 2017 16:00:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23CAB28334 for ; Mon, 26 Jun 2017 16:00:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16CA12863A; Mon, 26 Jun 2017 16:00:00 +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 7DB1C285BD for ; Mon, 26 Jun 2017 15:59:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbdFZP74 (ORCPT ); Mon, 26 Jun 2017 11:59:56 -0400 Received: from mail-sn1nam01on0064.outbound.protection.outlook.com ([104.47.32.64]:22198 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751739AbdFZP7w (ORCPT ); Mon, 26 Jun 2017 11:59:52 -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; bh=JdXbBrTr5UmG5NcstULEUF2YXxWNQdOK7MGsyrhoMyI=; b=D0cssiAFDkil8faohB5oNd3f6FNI9BKmD972ISh3Er8837DbMDGfsf6BSjPuaRsDSbea8Qh8Qh6sa58CKWlrxG0AOmCU8zdXa6vVWrCyXJVnz23kLVHAhf4F1cfSRj/kKhUPaVTRk/d/chmIVM3aMTJxCFELOPmAqeg98zwegXs= Received: from BN6PR07CA0039.namprd07.prod.outlook.com (10.172.104.25) by BLUPR0701MB1010.namprd07.prod.outlook.com (10.160.34.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Mon, 26 Jun 2017 15:59:51 +0000 Received: from BL2FFO11FD039.protection.gbl (2a01:111:f400:7c09::165) by BN6PR07CA0039.outlook.office365.com (2603:10b6:404:a3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Mon, 26 Jun 2017 15:59:50 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none; oracle.com; 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 BL2FFO11FD039.mail.protection.outlook.com (10.173.161.135) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Mon, 26 Jun 2017 15:59:49 +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; Mon, 26 Jun 2017 08:59:39 -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 v5QFxd5w002142; Mon, 26 Jun 2017 08:59:39 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5QFxdTa002141; Mon, 26 Jun 2017 08:59:39 -0700 From: "Dupuis, Chad" To: CC: , , Subject: [PATCH 4/7] bnx2fc: Adjust bnx2fc_npiv_create_vports for WWNNs from NVRAM that are zero. Date: Mon, 26 Jun 2017 08:59:35 -0700 Message-ID: <20170626155938.2091-5-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170626155938.2091-1-chad.dupuis@cavium.com> References: <20170626155938.2091-1-chad.dupuis@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)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(2980300002)(428002)(199003)(189002)(9170700003)(50986999)(36756003)(107886003)(33646002)(110136004)(38730400002)(305945005)(76176999)(106466001)(6666003)(2950100002)(6916009)(8936002)(4326008)(50226002)(42186005)(8676002)(80596001)(54906002)(189998001)(2351001)(101416001)(81166006)(105586002)(5660300001)(1076002)(2906002)(50466002)(48376002)(87636003)(5003940100001)(478600001)(47776003)(72206003)(356003)(86362001)(15760500002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1010; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD039; 1:JIygPzF6BkrDWraUE2SjSbgdqkTORuI5gZUL4e9ebzKZRh+N2L5jhkxQ3BlM3oJSGIHNNxv1ay6Vp34T3iP5ZyMnlK3MB1Dfow0312qD4dmTV0NbaIewd9dmU61XjTUZZyxsGVWacL6YpM+Mmmuv3Y4gclAMpQ3VWAWwkS4nZBa/GhGoSbalFqJljeaulXwmR3AjDMTdf5yTE9a785QUHn4ncGA2DYN1pqPigIvSI0EJ6gpeiV55+c+9gCvbAtfVN5cy2//MK/Q86VVcQ8jN/5BQDy9p5AVGwqHyz+urHayx1iXqX45+PSPDLWtOfkzgHJluDhlVn7lDFINdFXuFKnXMmNIAerhII7V8lRjZNpu8zLYzf4WW4We9cOkvlGYhNbevGN3lEu36wpr17spEBZe9e5ROQc8Nd1J/IolJydsYU6daJUpZATw+ruKl5g3MEcz1Lx0eWZYeww00pKJLBCnJDgLbwKxB9iMSGytCZkXJIIQzjCDWE+2rhI79nDMWoYKrm0nrZQ9fSRpm8OlVTyShbm+M840piQOXAKVxgfNWdkR8ht8/6npzSDxOgmKRdesTR08NEywMYNH4hOCphgKvtgvyPhqw7TUA9mSwxb5zNWf4qhEWzyzk0gN4oLvQCL/ROuj33VvzAnrfIZZajJZ4Bu31CNWouFUDnPDJGCd490NdbCuJlXEUFaQD8oTvIOY6ODyPOQi5aNEjTSHAid9c10kzgex07bMNAjfZ9jr70cleIj9Uv5yt9lpZgS9wu/dSl+ePEMSgv7E9phO+xW4Z6j9Kgqp7LA+UARrHWCQjllAixqm8xypdmlSzxavb X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dcd7ef34-8790-4165-82fd-08d4bcac605b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:BLUPR0701MB1010; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1010; 3:GyOnOCkMqPLW5bCBnFxm3BET1bePltwPwaTQ8GMi5+bLNe8X7UBqWCRfmA2no7R3UxT/bSY4LDXdvxyholt0BKTJajfHdNqZmpCWoQFTG14soas1kBczDp1O/jfVOSl6YEW838hbZNGSzG7WOUd8XWH47KNzrqLbNnHKtEWv7B29KalfLbgWl+qstNf13e7eKHyjcc0mr1mG8K1AxIDEU6Kl2DzHxQOvx9lj/s4Flq0arPyCM+MwLrchSGVdkmpLFG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4qKpJ+sgpDJkPoIQWgq2NVyNke8VK8hcau0Mfhzm6jn5IROckcLJKIM1t1dbHnBduAnPfhODc/rj5vAtiW29pOhk1XH0/q/LNF9R+0WEkUUPTffc+24OGjGTgO8x41KbTmKP0VWJAfNYSsJqR++97pTnK2eO6VkLX0wJd8cbn9j7OFCRL/9O/l8wAp85wk7leudLdWxue82NzNh9oxmjSWYTdelk6Q5CsJArdQMwFyO2SxuqnWbA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1010; 20:kZsKts7nIAS9LbQt2CLYdQAb0nLj/39ZZuWmzx82/M2fFZSEuJM6Hghwo1l1hkohghEcz7SSM3eqDP+VntTDKXhdROV6ilCGXFXXproSp1IkY45qWeLhPOlJI3pIlAEz8dzgFsjtTJ8qM1QydzfRLQPcrIe0KSa6/wH5Mjr9jHeUj9LHiDcJZRuUdr19suJ8dbizrBTKVQ7CNdVVmU4QBa8YzqdjcKOmWix02rMrAeKC5gzQQw9JZ4zO8/ao1ud++YmdAkB8kHQhsmakJZ/84DSE4V+OqV4gLrltHPdiNO8b/5z0l4irv8koiGV8mGCOVUDu2M83r51m1tUTakMXpuI17XZ4+2o+mcG0Cy6HBg6OuRAm/XuZtMl9pH3FLWVJNlP0LMbNrzcUzLcYHrBmKDXPhWsGE3sTEbI89xKE8kua/BRjzOQxrgvlrTvcuaJzrNC9SwYWsJVpN73ZKSmBWOAkyI3m86QTUvDaXrN92YrDnpx0Bw5ULP5Ke7TEntEq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1010; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1010; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1010; 4:T+uoUnTZw0RgCrrrD9ZdrzwDE8dGhynC0CJNcleR?= =?us-ascii?Q?AtVzvwIwTlJOBi/eoTnoYBJiyhKWK/mopPKj6ExL9gerYA6eCXOZ2uo1OUHB?= =?us-ascii?Q?7fprH05hRYLfOlcHy9rzm55AYuQ1MO7DcXxLz3rF+U8tSPdguK7RM8N4szcs?= =?us-ascii?Q?qcbsqdkJx8k4hU55qgFGnFbzss/5Z72x/bXyOawpGdX1zON5mFoE6sL9bwpF?= =?us-ascii?Q?dxs1b5aITHCO0nqAFh8pEWTiGy2euAcgexZkunTyFovcHosOEE4CMhu6ENx/?= =?us-ascii?Q?4ATwmG3B1zSxhuuYL1t1HypiIY4EYjCZCEETE/510N4dC6jf3gVPB5WeDLlr?= =?us-ascii?Q?yMT+3hcLfgoZnfTUa943zk5Q4neSbltAu6mOpwaxsPi4W4PnSeSWsE2sZXEy?= =?us-ascii?Q?Tw+hPftEKqBleO/KM0o0BAqKIQxq5S1EZkzp87nwKeknHW24yQm3j0Gwl6uB?= =?us-ascii?Q?bC1nbYBRSAJYBdMaXjZPGivQVJshOoFX6oV3DRrj3syTgl/FmB7vvyOHHo90?= =?us-ascii?Q?oi/yAvoxT+pnl25nibQxA/OwqlQnuwP/PIj22sJpp6gdz0vuwEEOi5X2x9EI?= =?us-ascii?Q?GXbjvbXXFgvtKCT1RWbPFSpH9L68NlkYB5EOMhFbqfJ8atvISTN8JqQ94uhr?= =?us-ascii?Q?Gd3eXndEsJJkPOjXOV7zcmQ8cN6kcut19NQpi5atPIXwIxgu9aCaClRcA9sv?= =?us-ascii?Q?9ziAPP1HhyBVmKGrv2JxqJBA6eVLveCaK8iLhoV8vb7jAFncqMGoGvo/Fmz+?= =?us-ascii?Q?g10zE+QLdDzV9/w8X7e/cSB2UufIEOBU2lMgqWbIp+7YJPvtkZDSq5V0gRNN?= =?us-ascii?Q?smSQT/dPFxhDLdQshu/8nCyrUl8tXCOdcR5Rk51zJguyMX4x2nuvqmjYSsuh?= =?us-ascii?Q?X2SdPeaal+Fq1Rk7lf6SCQ1Eipv6rZO8KlsfYBA3ih9umed5IbjJU1FPf+j2?= =?us-ascii?Q?D2oAw6eHCSp6QKKQDl1fSAeB6glnKzaHinaV9Lv2fgaNVKBSjeyOD/AN+GB5?= =?us-ascii?Q?KdKxrcZnzcP++/1nLzs3jADDkLeqXYeXEsaUSgYC0qdEeINO2clujZ0VIO9P?= =?us-ascii?Q?gb12UEVPZM7HNTaKTYNNx2TwHzCkSkp/W04lr3Cue6uDfYSGWQf8gs2+sN0d?= =?us-ascii?Q?VCQhI7s1Od4+5t00C7YwQxzgKrc+7kWRW4DDTcC8e8l23BKc7hStbzVFcPyh?= =?us-ascii?Q?N52EaN0fV62/pt4eVQ1OvbNKGlOLD9cqQNIPX2mi25GruxvpLtaYS1mdzA?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0350D7A55D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1010; 23:bWxJ+6fgpPHAZrBANHMGjGqh3vs3dUZeqkV36nn?= =?us-ascii?Q?n+Uq7SHBoI91BCSJWKLr5WeFLQ5xZQYX5RGUEX5CJZyvRj03RL7TRFqvTvTs?= =?us-ascii?Q?RQyu+BWD6xghWtUnV4PWDgr5TEO2iLz9lfivlidMMZvNPUOM5hK/yFHscU7q?= =?us-ascii?Q?AC73eqtFJkno03i08dqTCEdjwESi13aiYJW6lNy/1PgazWwN/H7IzmmoQ+lf?= =?us-ascii?Q?4j3tC8XTHU0fbLJ4hLDZlmGksb1khKFJBBhqeb2uvtAsJICiAajPSx4oElj+?= =?us-asc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CJjlkKkHQn0t4xUAit386PKnjqtbMRKOxnAI12BK?= =?us-ascii?Q?gGbVLl+d5mFC4CJM6zsxioJpgoA/dbG9FrvRJXukzz0lOKvyyMcGr+VB5WYn?= =?us-ascii?Q?ARrc7rEDps1NxThNyd5EK9xoShYmMABpfPi97KRYDEo+D4eBp4U1oKlwF+Up?= =?us-ascii?Q?6YJs8U+Sjo/txIb7BwfbfyDAPKEwnOqO55qX+K1rLAZqV2i3RHZ7g8g1Ffk3?= =?us-ascii?Q?XMs=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1010; 5:zai3535ZLRZfs8WEH44dbiEZxWBAtJE8Abs4MKy9DN39fKAW9nqQ/+A6zfgz92zWhvJ5PgQLedL+LA0gU/NR6g3/fH66xi7I1wJKCSYYk1s6lq688vYte7CDAniiFNAqQuub3SLl4fV5VEXUY9anmj++LFwhucQAtsoChbrSXyCa9WdEZpWqfzRMXWliUk2zPpGbNz9f0y0p3TRhTWrkEYy3lxkTyZHE1jIdZacP0XD9EvgNW/cdmIUuT5tN0lJ6HMFn/MUZo6v//TkMpKxc4KrC2rZehyPLS/PklhiBwss66jZT3dAPypomvfFoPbmGq+B+c9M33laPrq3Jv5U6nuZw8rcYVCsZx7enh80BuQpzUenZymFSnCTdOZmi5yp+p3B2RgjmKNK85ah1bTSKIyM7pGqcUTaBGN5gozU8hebxfVFC1IMKzMXJmqq7+CzMxj4Y1TR6N4DN+moeV0udiEaxwRDVjfP3FRtSQUlifpLMGRM+Jj33T+G/AnPKjBwK; 24:5VZqMQeacsQxZINKlJVlG32aiIqTL2k0vOB5zXHrd3fhGIUyhphkiHY7oO+nH2QbfV3X2nLrSJryGnaFosHaC5ZSaXsEJ8liUaJacJXFZr8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1010; 7:5/wO7sDjykNA3llA/p6Jf7Z4qds4XCHlUmoj1mrxC1YO3o0nM8o3or5Qc9zMeRk/hmyd8Hk8fa5/0FWkEjxTxi9H1loyteZCSiJ9dYqmDkbfO3C63NpHdf8/VU/veV8sgxuElbJI5rjJ2GJMEDiScJ+SkfusUaUot/ceDFiZkul9CgvFWy01A/nlh5/uyTPymyWGnQ+7vGPVWjnvSsEi6SmePFJoc/WozInZ4CiSQ6xaHEoIYAdus/bhLWdU72BsZ9FkPsGIxPM6vhXyE9mr5Zdc+PVS+iHe6MUPosCzVlSp1Bw4p1DGqKVp8Unz7ZphrledgVTLOkYGADUho9KKq1XP3Lshm3wg7h1OjanaDxPSeM0vWkoSEXgEtVA/SbLlMPoAm9IUq7/vX3d3cVDoSfIix4DvlQMUJluobMLHcydH0kKYZv3uP74dTZNyv46TlZ7v27LnlzNoCVlUs8wS8dZFQ2VetjVz5UAM2+cGeXn1XJfJHun6U+qizkNPWw9DKrFpjaa5HCcU6bdlpjGbmhTWt7hH/64rzgtZXqLTnd2OJkuPrJPZkbT09nqF/ElAm9qXbRwXQlIKGM/r1HMCs8b/uCkPOqP4VjFmJaKRioNdUrn0gbGWICr6Uu6E1IrWAax9fjK7CL3h1FVtP9B9zTWoCdG4jUKn4z5/AoXc6WUGTsxxofjUVbosgJ47G9t5X/0Yya0BXu/aopisuLRZYqVqecozTzp4RYYIKGu2W2uHMMNNvfas7vQgxD7L/78qvvRnqrg1oh5HrCtJ1zMwamBFfZ3UFcWmxPCFH46NUPE= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 15:59:49.9501 (UTC) 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: BLUPR0701MB1010 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 Some vports addresses stored in NVRAM may have zero for the WWNN. Adjust the WWNN that we'll use to be the same as the WWPN. Signed-off-by: Chad Dupuis --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index d9f9c56..31aeb02 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -2139,6 +2139,9 @@ static uint bnx2fc_npiv_create_vports(struct fc_lport *lport, { struct fc_vport_identifiers vpid; uint i, created = 0; + u64 wwnn = 0; + char wwpn_str[32]; + char wwnn_str[32]; if (npiv_tbl->count > MAX_NPIV_ENTRIES) { BNX2FC_HBA_DBG(lport, "Exceeded count max of npiv table\n"); @@ -2157,11 +2160,23 @@ static uint bnx2fc_npiv_create_vports(struct fc_lport *lport, vpid.disable = false; for (i = 0; i < npiv_tbl->count; i++) { - vpid.node_name = wwn_to_u64(npiv_tbl->wwnn[i]); + wwnn = wwn_to_u64(npiv_tbl->wwnn[i]); + if (wwnn == 0) { + /* + * If we get a 0 element from for the WWNN then assume + * the WWNN should be the same as the physical port. + */ + wwnn = lport->wwnn; + } + vpid.node_name = wwnn; vpid.port_name = wwn_to_u64(npiv_tbl->wwpn[i]); scnprintf(vpid.symbolic_name, sizeof(vpid.symbolic_name), "NPIV[%u]:%016llx-%016llx", created, vpid.port_name, vpid.node_name); + fcoe_wwn_to_str(vpid.node_name, wwnn_str, sizeof(wwnn_str)); + fcoe_wwn_to_str(vpid.port_name, wwpn_str, sizeof(wwpn_str)); + BNX2FC_HBA_DBG(lport, "Creating vport %s:%s.\n", wwnn_str, + wwpn_str); if (fc_vport_create(lport->host, 0, &vpid)) created++; else