Message ID | 20180425130905.6385-16-chad.dupuis@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 BCEC1601D3 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Apr 2018 13:09:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC7C128DF6 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Apr 2018 13:09:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A140B28E00; Wed, 25 Apr 2018 13:09:43 +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 6821228DFA for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Apr 2018 13:09:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752349AbeDYNJl (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 25 Apr 2018 09:09:41 -0400 Received: from mail-co1nam03on0072.outbound.protection.outlook.com ([104.47.40.72]:32000 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752893AbeDYNJc (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 25 Apr 2018 09:09:32 -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=sTjP5SUvnBNrw6EKGqlE16gGbHJkMrHbGXy9wGTC9u4=; b=Zr+pdJRHnTEw48j981vURC6VwFoWbiVhThCISL9xvYJilb+6myb11XtzEXt1Y+kFTrFw4J787mPOqAZSrts6BriR1ktbb2SVL6EqHVJ0uO7bUb/Ofx1ZnQ9ove/47twBfOoiqprx4HufFB6DoSU4YlSDrzNbbkN9zRErrPoa4D0= Received: from SN4PR0701CA0011.namprd07.prod.outlook.com (2603:10b6:803:28::21) by MWHPR07MB3181.namprd07.prod.outlook.com (2603:10b6:300:e1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 25 Apr 2018 13:09:31 +0000 Received: from BN1AFFO11FD006.protection.gbl (2a01:111:f400:7c10::187) by SN4PR0701CA0011.outlook.office365.com (2603:10b6:803:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.13 via Frontend Transport; Wed, 25 Apr 2018 13:09:30 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.com; 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 BN1AFFO11FD006.mail.protection.outlook.com (10.58.52.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.653.14 via Frontend Transport; Wed, 25 Apr 2018 13:09:30 +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, 25 Apr 2018 06:09:23 -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 w3PD99QD006480; Wed, 25 Apr 2018 06:09:09 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w3PD99nQ006479; Wed, 25 Apr 2018 06:09:09 -0700 From: Chad Dupuis <chad.dupuis@cavium.com> To: <martin.petersen@oracle.com> CC: <linux-scsi@vger.kernel.org>, <james.bottomley@hansenpartnership.com>, <QLogic-Storage-Upstream@cavium.com> Subject: [PATCH 15/21] qedf: Honor default_prio module parameter even if DCBX does not converge. Date: Wed, 25 Apr 2018 06:08:59 -0700 Message-ID: <20180425130905.6385-16-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180425130905.6385-1-chad.dupuis@cavium.com> References: <20180425130905.6385-1-chad.dupuis@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(376002)(396003)(346002)(39860400002)(2980300002)(438002)(199004)(189003)(50466002)(106002)(36756003)(11346002)(446003)(305945005)(72206003)(80596001)(42186006)(47776003)(316002)(476003)(107886003)(48376002)(69596002)(6666003)(6916009)(44832011)(126002)(1076002)(50226002)(186003)(486006)(86362001)(2616005)(336012)(478600001)(87636003)(16586007)(356003)(59450400001)(2351001)(106466001)(2906002)(4326008)(81156014)(81166006)(8936002)(26005)(54906003)(76176011)(8676002)(5660300001)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3181; 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; BN1AFFO11FD006; 1:/Ds69lbYmTrVlBD52zHErqHPZXUy/63l9Jf/jITwJY+xWhzCesphC4xUkvv0y7Xgp86k0eMRj21Oh4W9mZbCgSYbWPEly5z5piUF2RUewEswJhJnRfyPHJ6ZtWZWLkLJ X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:MWHPR07MB3181; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3181; 3:1rrTF+IY/FNRXVlvo8rYjzLSVuDHa9c9/BxXAmL3CzwoQd21iAdbu7LV34+nskv7MbrcoZr+usb2AFRfJX95HV8Fz5sLvGVNDHjC0NzrOYMvTw220oBq4dsZCl39fsEwa2jUI/UnO7M7jg3gOcHoDp0X86lg+yALM8VxMppmuwUyUYd8Ao58FvJAiOhND/fwCbmP5Jh8Pkza6Bg/qqcp/+zR3KHBFym7oeJPT0pLVLnq3gecYphwSpWXmKS819iTC8lvQPE330sabpMn2Fvcp0hSdkP5z28bdp3rqlxNfaq0eNjS6/NlN2m8Nbf+mILbLPT35Tej74tgR+1sAo3GpjOvae9orpGXObghtorb01w=; 25:6o88j7cpmxOXpZQErCEx+pRLhCAWbX+tFqWf8wD115+eAr6XwQkG+muA1RJxhluFyeTTPKF/ZSDz+vNjzoKMs5hqorBZs0H1pfDB3ZNhrzXJRqF7VE3zSiqkU7Un5wgFpJVCg9kokVqXNM76T8vEmoccMIknszYzywt/aEifDGYGd54M8xNubhwqSAnYZ5RrMnBjrleRFObyc4DR9Rf/06RvL3Mp2sgLfOUX/oaV0AHwjDSaM8FEq/2zmU9xr3iskMC6o25jlKl+O81p3I2rpX9NgPxvIB/pBAKfWUnDEDxlkqARE2ntkdHoHVW/9Oya3UGjhyGv+yTucCOQ2iroKw== X-MS-TrafficTypeDiagnostic: MWHPR07MB3181: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3181; 31:EfcteGmj61SHeXLDx5A9V7LFRwSIrrKPax9H15nm2fTojd2ROIf5dujVFrd6eoWrNXKOHYxvhbbgBNmduhVtm7aotkurNExGxOqVomesvEJYCXSknSRAHvcr0FU2eh/gBwue5ZRwObSOFd/iSf2EQjUZkl6bzMmhwqvjIyNZa12bSRnvkszZoSTJZWSObbRLFJunrGio2MRaWJiGPNIw12feQfYPUe5DASSeyZiXD2Y=; 20:ueiixuovdDrs8YI4WPbE0XyTzJ1GukrOgGyys00ZHRF2my9Tq78KuoRvA/+EApk3biVDs0h1pUVR96BSmP8/XfFFz6olEeJC90pHahOM0rCkOkLqb94lWYcYgfSncUC7zuZxDZaN/YoRZNje8qF+z3s+aT4Bz+IWQ9EhCHy1xkG42uDGtIrOAK3ZHz0S91oq7GFVZ9p2y5Zj6OmZWSC4WYqzXILNBZjAyMVAty/KS4dsDHVqri9bNuh9sGGzf03AZRlB6jT/i/w+wn5+iPCDaWbl7qutT70xv91fqNSR6aeThIt8yEbYLTAuUOuvBXGv2jIllytzRgEtphgijbkUNE6/cUskrTm2mJf7JZMKPwtHxO3PT73qNvMiskJGBRZ8a0ef69q2Djf96fMixMuptDjOl+6HT5WOilWmiyHmiKSpsw1bYvitLWNepsrp+M8PatmqcLKIQMcyd4gmYu9KqdzW0mZlowzly5trXLGy9O1RQOq/nW7+lZIarA06U5XZ X-Microsoft-Antispam-PRVS: <MWHPR07MB31812DB88DC20FAB1DD8C1A39E8F0@MWHPR07MB3181.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231232)(944501410)(52105095)(93006095)(93004095)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR07MB3181; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3181; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3181; 4:J9P8mIohOR6huH73X5gpwnapzWYnqxISISH42jZD4uTeQeJVU3wP8zkxBojCfJzZ9bk73NxIKdCGrkhSSbb9WRPspretzQkHpcISBBKPflsViuAsy3U6Yg3CpWSAyR6fa+EKajEoioTbaB7i/Pjj/Lxh96j/n82wUI2VX7Olzxq+AkIeciufq0912f4KmfUAeqHrCs1UC+pNDIx6QNxIjhs+drRxoXmqx0DWFdu/uUhGP6D+pE8EWNFYSUAqfBbcH9PTrqZiyGK2Xh0xNs/Irw== X-Forefront-PRVS: 06530126A4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3181; 23:s+6RHkqMQG5nvXoNatJ9wiMx/16P6IbkFoLB15+46?= =?us-ascii?Q?hqrMQoqFRr0tFZsG/9o6MG8Q9PR9jS2R1T4JYP457yldTHA+o+AHH8SOrQAc?= =?us-ascii?Q?e4aQ0sOnbQrBYSYv3H6CZ7xn9YxgDuxG4dDG1xqSQNbPEexaG1mgyrPGWRF2?= =?us-ascii?Q?Hwz1AuG2cLRiAOVuGAxNn1Jq38ojTbg6c25o0JQTslVOrDr5bRKZTQtl9v7Z?= =?us-ascii?Q?fpvBnfnFzI/eZHrpvDUAq54cmEf96hqL421z1aGx1HZv3A4dF9g8nrEd+Y84?= =?us-ascii?Q?gtuR94gqnFCrf1xsbkF675l3KT5nUVMn1OsGFvocuEy9VSqLamspa4lKAbzT?= =?us-ascii?Q?t7nZd2bwLR4WHh61FRejcOldDl32s+t2iVb0MXmAg1KoltXl5TUq1LL8bmkf?= =?us-ascii?Q?XQaK7ZUE/ScJe5CEPTwTW7b1x4le8Vp4hzcMLvngiTXx4VbM973Y+t2wV2Dp?= =?us-ascii?Q?4nI6f6nX1u9G6j+4XBJW43lLDHXhSyRE4tpJOhWxaQMo2yyAB/bz7gJ8l5Y+?= =?us-ascii?Q?fRjTbyzYcO+Xt1QzuXRIpzRsD2IzIIcFnkpaXAkAAOFkiT/kaGPpNP0PiSFp?= =?us-ascii?Q?OKw2HB8Ul0Ns2R1Zl0o5c7xIHLzoYE+uSHGrB9llFog0XlMofv16F9MrO29B?= =?us-ascii?Q?g8Zs5xgUPFCaRnW9D8t7vZXGwFFYtePeakdEOl1rb707/yW9GqbaXQAqtNVE?= =?us-ascii?Q?4FdUwMwQ06StvN23/NAhMOeJHGhrCQmizawZDJN1Kw6EPn7eMX4dSskHCO72?= =?us-ascii?Q?V/NtDjeRMzPb49I3Bpm+v05JGcG4Q1AmPbH9Q3WF85D48GvmV8iyS1rdqTvA?= =?us-ascii?Q?SEd+5vnp6yimidUFtKzHWqU25YO5vCfnuB6t4eH7z3nv23wroBqxDna0emZJ?= =?us-ascii?Q?Yc8g2kI4+HILR9BLeXTVKZ6c32NtCZXZawQ9+Hwp+AwISkUwnRMBMWOXlqgy?= =?us-ascii?Q?LHnZWAjivflpXfOBvzoCdoDuXnl6mOWQAbkgUC/Qh0SHupaxH5RKpsi8UmfE?= =?us-ascii?Q?BY2K9JAU52g78xOe2dzD/bNenarXSiqJQgk+lLxfXcd0CPQObGyGWMXv2m5K?= =?us-ascii?Q?fzYGGuXit6VgcORAJjlBGz4GnDjpU9sVUZHTUNNFfS/kibhPiiBxHcdTODxr?= =?us-ascii?Q?OymNIozum5/INueCDeK9trYdDN8wdZ4DqI8yx6rFoad+pVDPTNidok8wxhUm?= =?us-ascii?Q?rrq8JOwMDGc2t4=3D?= X-Microsoft-Antispam-Message-Info: 1P5kowhH4b0MZH1hrzIXfvFSmYTSUyNSaOZ5DaVRzTcDRO3AKfCuBS2VZX3NxV85ydh64HYp5BwNSr2vqPRi5Ti7FYBT4p7kJ9APyEepN2bK+K4Ef/kEYhjocP0AcPbeDuAhEee6kSbNwz0l80JyjicpKpNktsnuoAT5IFtZK8CCdz+Owo6ayaOIH3fMRTlC X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3181; 6:dwEx5gdeXDhaNMqzheiJj6kBWPYRrbT4GJ2su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filtering-Correlation-Id: 01ca0ad8-1513-4686-d5ee-08d5aaadc836 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 13:09:30.4462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01ca0ad8-1513-4686-d5ee-08d5aaadc836 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: MWHPR07MB3181 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 3e9befcbd5ba..0150f2e4e75c 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -3011,7 +3011,14 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) INIT_DELAYED_WORK(&qedf->grcdump_work, qedf_wq_grcdump); qedf->fipvlan_retries = qedf_fipvlan_retries; /* Set a default prio in case DCBX doesn't converge */ - qedf->prio = QEDF_DEFAULT_PRIO; + if (qedf_default_prio > -1) { + /* + * This is the case where we pass a modparam in so we want to + * honor it even if dcbx doesn't converge. + */ + qedf->prio = qedf_default_prio; + } else + qedf->prio = QEDF_DEFAULT_PRIO; /* * Common probe. Takes care of basic hardware init and pci_*
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com> --- drivers/scsi/qedf/qedf_main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)