Message ID | 20170523131931.1777-4-chad.dupuis@cavium.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
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 82C38603F1 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 23 May 2017 13:20:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 718A9287B7 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 23 May 2017 13:20:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66474287DB; Tue, 23 May 2017 13:20:24 +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 B5FB7287B7 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 23 May 2017 13:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936006AbdEWNUT (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 23 May 2017 09:20:19 -0400 Received: from mail-dm3nam03on0053.outbound.protection.outlook.com ([104.47.41.53]:55856 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937113AbdEWNTx (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 23 May 2017 09:19:53 -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=xGouQh7LHo9oEc+SD/3n0atjaee9shnemuAGAlcd6aA=; b=abM9PTcg96djXk4ame4aIk9sHtI8hf3WePv6Jzcz/yUc3/WutMcCjNaDSBncBntUynT0XmMd3cOeMlKbCpopq8kJRznJOmJfsmEqZnkklI1NVRC1PijtLDmRjqoLaxBdlr+0UNa6VZPz2rv2YuyFNTQ67G8/I43sjAv7cVrFyKQ= Received: from BN6PR07CA0024.namprd07.prod.outlook.com (2603:10b6:404:3a::34) by DM2PR07MB432.namprd07.prod.outlook.com (2a01:111:e400:243a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 13:19:40 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::141) by BN6PR07CA0024.outlook.office365.com (2603:10b6:404:3a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Tue, 23 May 2017 13:19:40 +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 BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 13: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; Tue, 23 May 2017 06:19:32 -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 v4NDJWe0001824; Tue, 23 May 2017 06:19:32 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4NDJWOl001823; Tue, 23 May 2017 06:19:32 -0700 From: "Dupuis, Chad" <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 03/15] qedf: Honor qed_ops->common->set_fp_int() return code. Date: Tue, 23 May 2017 06:19:19 -0700 Message-ID: <20170523131931.1777-4-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170523131931.1777-1-chad.dupuis@cavium.com> References: <20170523131931.1777-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)(6009001)(39850400002)(39400400002)(39450400003)(39410400002)(39840400002)(2980300002)(428002)(189002)(199003)(9170700003)(5660300001)(1076002)(72206003)(48376002)(33646002)(478600001)(8936002)(80596001)(86362001)(36756003)(42186005)(6916009)(2950100002)(50466002)(356003)(2351001)(4326008)(47776003)(5003940100001)(50226002)(8676002)(6666003)(81166006)(106466001)(189998001)(105586002)(305945005)(101416001)(54906002)(107886003)(38730400002)(76176999)(110136004)(50986999)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB432; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:KQ/eNCWN298bdpAGvK8OfalWYy6qoKg+0rJpBKTEI/1Gpr4UCsvSED3MOPbfEI6Zh30ctJWsiTCKRMZrNzFZCYrf8Xb6cOW/WRyoWhT8neHjTXzmguAD2Fg42Er0/5OOe+KtXQpwQnenSXmTPo7cTIzKuNUbxcEcbaWNsPbEV1Kx3pwfPTlIFQ+XlDh30Sq2seYPhrZQeNlTEZ/Ri2NOD43Lgnd7IXnKLjtZjqF7SW3FlOVDHQ7IVEK8JcygdLOdO5aKxRFWz5yYeUO3/zfRH9h/j3fGdASOXf2ziCO58TIkN3W1P4Rk9K0VPrA05xEfZPmABiV44yQ2qVphtRGw4aotbGGd6JvKQgDcn93bv3DaGZNDLcokjfSvWvgXbiBFOSeiBB1jqquQzftp9U8pSazzzizzF4UoLzlhIycl5+HAawnLAYJHHBdQNSNS0V33b5JI/QQZSkk5NqLRnE5zdlwhk6Sl1gRvL5Ld9yxKFI3n5JSs9/GWmvrzjzRzh8xo/s6NsCsnBIK4LL18+OKFxg== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR07MB432: X-MS-Office365-Filtering-Correlation-Id: 18c69983-4363-42e0-3220-08d4a1de5e9a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 3:Sg3vwkOL6Xv7UHoohP9rZO/V/hGhhI2XaYq+EHcSrtTIlZfBq5S2dJAOFddlXDyqMp1e7qlpH62TAFDN8zE6U1ERcjerJk+VCtVUbzfaWgCCYKRAilwkWgcwUzpCrJLXo4IpTsmB/njG8CwOlkeQ4hnq/3CbQltsqywWGeEonWueAvaVJJh7DcyOwhKczYrBxRK4oDB0dzmxx40rpWNwZyB1IvPOM+pVre0dNkAHPzVIEak3QH2l5m94MKcUOmY1mV8Gto1ecmTKs8yY6yg40lt8544bNd6YzjycmWxoRtgs3O/00N7eI+FXSNoGFm8xuOBedWpnk5jdd+lbnOy97UEC06Ts/qeRiMnlchGnTljoj1kqIPg+Z6sMHD09fOBeWRXfwDYp8EkPkTKp5Eiqk70EX/bAiR+Jw8/B9RSGKX9lkTdKUIjQ0Nez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gYzkhqlCnNFU2rypFHg5jqqlF5iIv02vbHB4VgRfS30Zd8zCt7UNnKszbhXa5hQEm7a+JtoEc7gZG/ioL6ehQe8ptwxlmJhL1U6hvOWam7JF34SPCXmkzu4pky2ovPl4R9my5b1YcRJEAw6UBTrjBI22MAPG49iQ/9B16o1P+uRHIAEwMvCoYUs3oGdFUHdp3rTDh1WKpLTxkInaXDyNOZ3k3CiE/4C+DAkf4jvutVLCxAlNpZuHbxnlKWFO6iqCcHGqWO/Z0joOz1vMpY3T+sOh4W9PrCWW6263+f4HmsiDlWoPWc/AbyPFq3mAHQ8w428vLd3bcv7AM2VR5SGMSUem1QrRyg X-Microsoft-Antispam-PRVS: <DM2PR07MB4324D56C7B5FC22F4D74E0E9EF90@DM2PR07MB432.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13015025)(13017025)(13024025)(13023025)(8121501046)(13018025)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123560025)(6072148); SRVR:DM2PR07MB432; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 4:NY81ApJ13xWjuPT8hLJlbD6cZ+QC5HMie46BhJ3J8V3wvZOH4RzYEcKpVt0gLZMGIZPE5TyIm6UOZRY6Q4bs2EJV/+x0hi+GxObwNUUEm+1fpcK309hyU58ssVscgZF0ohWzRieAPSXeCpDACKkt3jKzQOMl7Fih+3UXvvgKJGAHOzbmdbYWBGHweXpFQDZtNXDSl/ENn++GeZGFRPLa2Kolqs49co4WV9jGDGGPpC0qfsugrg1acH/9jwS5ysLo/hMoU4V0VQVHXwFxJsnze03GHDAJN0lGjegK9ebOk54ZOLCpphAHMEo/KAaeP6C1rzkx/9X9YBzyiiIuudw6z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3tYrlY4X9Na0GLNR8CA3sne2RPzzroNJ5MKMNlVpSNjbc6fUT6IwvFVMBQSc8UE6NX5o9k79qm082rWtw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 13:19:40.3845 (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: DM2PR07MB432 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 |
On Tue, 2017-05-23 at 06:19 -0700, Dupuis, Chad wrote: > We need to check the return code the set_fp_int() callback in case we were > not allocated any fastpath interrupts or there was an error setting up the > fastpath interrupts from the qed perspective. Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index c8d1688..f703801 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2036,6 +2036,8 @@ static int qedf_setup_int(struct qedf_ctx *qedf) * Learn interrupt configuration */ rc = qed_ops->common->set_fp_int(qedf->cdev, num_online_cpus()); + if (rc <= 0) + return 0; rc = qed_ops->common->get_fp_int(qedf->cdev, &qedf->int_info); if (rc)
We need to check the return code the set_fp_int() callback in case we were not allocated any fastpath interrupts or there was an error setting up the fastpath interrupts from the qed perspective. Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com> --- drivers/scsi/qedf/qedf_main.c | 2 ++ 1 file changed, 2 insertions(+)