From patchwork Fri Jan 25 07:23:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5EA49922 for ; Fri, 25 Jan 2019 07:25:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 431112EC77 for ; Fri, 25 Jan 2019 07:25:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3431C2ECFF; Fri, 25 Jan 2019 07:25:03 +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,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 B9F212EC77 for ; Fri, 25 Jan 2019 07:25:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728423AbfAYHZC (ORCPT ); Fri, 25 Jan 2019 02:25:02 -0500 Received: from mail-eopbgr700058.outbound.protection.outlook.com ([40.107.70.58]:21605 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726520AbfAYHZC (ORCPT ); Fri, 25 Jan 2019 02:25:02 -0500 Received: from BYAPR07CA0039.namprd07.prod.outlook.com (2603:10b6:a03:60::16) by BYAPR07MB4376.namprd07.prod.outlook.com (2603:10b6:a02:c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.29; Fri, 25 Jan 2019 07:24:59 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BYAPR07CA0039.outlook.office365.com (2603:10b6:a03:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:24:59 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:24:58 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:23:56 -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 x0P7NtAk003551; Thu, 24 Jan 2019 23:23:55 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7NtMa003542; Thu, 24 Jan 2019 23:23:55 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 01/13] qla2xxx: Fix N2N target discovery with Local loop Date: Thu, 24 Jan 2019 23:23:39 -0800 Message-ID: <20190125072351.3504-2-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928746991652037;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(136003)(39860400002)(376002)(396003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(53936002)(48376002)(486006)(2616005)(476003)(50466002)(126002)(446003)(11346002)(51416003)(76176011)(305945005)(42186006)(316002)(110136005)(54906003)(16586007)(47776003)(336012)(26005)(36906005)(36756003)(85426001)(356004)(6666004)(80596001)(69596002)(105606002)(68736007)(106466001)(4326008)(97736004)(50226002)(498600001)(26826003)(87636003)(8936002)(81156014)(81166006)(8676002)(4744005)(86362001)(1076003)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4376;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:9FdpesQq70xilNTGMrwQ4jw1++Uc9Q54nfLR2JI8G9dJA7Gl+JyLkGwt7tus/RxB2C7hUdAcWbqZ+JE7AEWFBU9F30J0dZQQ4CwDWdBwhwtSgiMS8oHmZsl0NB7aF/K0ud+4/KeD1ur+NCYZvHtWQg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3eb5ff2-19ea-429d-18ad-08d682963685 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BYAPR07MB4376; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4376;3:lLiVMLSmEBGCUepNx+cN1rlrsxzQzyqf4D8adBbLhe/YHZQ7gL9BB/4J3hF3t5VaNMp8P2yxi+w733IzT1YhEN0YAVO6zgad/Qc94bmh01Rhoassd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Ei6YtLlqbjjKOJ+A1yhyWF0awESewifey9gjYwwEUJdRoRDbVzlmOLoura6J0RU/onqxI6VREVFSh/c0UUu7yeyirUSQyD44lSkQp2EmPnWG2XARczYyZVtCl58Ex3PVxGxKqAfEEX0zBjhppGmPSHKvHt/crvi9upLPa8aGz6Wy8Y/wZZWfxvCUjXcPtDc56w5MzLckAV3v0eQiJm5Rs0dgDa1QH7E3MElYW/FUG2CRmetPH23n08JPD4qrmfjieNWD5Q6BXmgQXCwgI6Q==;5:Sn6SEyOvggg+IZKh6LH2a4dGI1VPs2imsxhQmP/2cF7Ph0Ytt0yMD5SBZZ5CxWUQtE1tXsovk8klCYZdtGWdQUTHTK8L/ln6eAgUbPu9PF/bWqCWvB8fHq4avy7HBtEQUbmtPccDu3KfNka5KbrpvMJ/DhDy4N/YzzCjab+VO27xmyr86M6vtMHM3HYwd6UvBjTew9WMK82yNojQOofVaw==;7:dyQBtLC4tBIgewx1Dc2nsa9eVUl2gLrQXRCq6nsPCXtOo00Im5CLFPrKEvDVMGl6cmrwueBMw+/rP9QUfAyxLGvzzCitkiKn7oV4LPC0oUgkfmblaQJgp4+lP872djNdzRaPq+TtWaJx0iiyOVP8kw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:24:58.7498 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3eb5ff2-19ea-429d-18ad-08d682963685 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4376 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 This patch fixes the issue where Dell-EMC Target will fail to discover LUNs if domain and area of port ID is not same as adapter's. Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 364bb52ed2a6..58b4bfe01202 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5046,11 +5046,6 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha) if ((domain & 0xf0) == 0xf0) continue; - /* Bypass if not same domain and area of adapter. */ - if (area && domain && - (area != vha->d_id.b.area || domain != vha->d_id.b.domain)) - continue; - /* Bypass invalid local loop ID. */ if (loop_id > LAST_LOCAL_LOOP_ID) continue;