From patchwork Wed May 31 13:33:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9757045 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 7658260390 for ; Wed, 31 May 2017 13:34:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7151B20952 for ; Wed, 31 May 2017 13:34:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65F9027EE2; Wed, 31 May 2017 13:34: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 F33EA20952 for ; Wed, 31 May 2017 13:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751188AbdEaNeW (ORCPT ); Wed, 31 May 2017 09:34:22 -0400 Received: from mail-bl2nam02on0065.outbound.protection.outlook.com ([104.47.38.65]:32549 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751015AbdEaNeS (ORCPT ); Wed, 31 May 2017 09:34:18 -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=eiNiIbr1m+82FkGW/T9iP8VKrLsw6/vyed6Wc+sqC+0=; b=QpQZENQ3dS4ohzI+FkEC7GVUKlmeIJOOC4vanpabUvpJkG5p2ctTVxZ6cFzUhdcutKNu6Z4Bsl6qMl4qaC4w+uT9OTSz/7pEOiQg691LVHeJ+F4rsiFOhstiFnHw4at5uyIgfDTQMsGZMP/TIFWTWvdDfQCJANPOb6QQwCoRaq4= Received: from DM5PR07CA0033.namprd07.prod.outlook.com (10.168.109.19) by BLUPR07MB418.namprd07.prod.outlook.com (10.141.28.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 13:34:17 +0000 Received: from BL2FFO11OLC005.protection.gbl (2a01:111:f400:7c09::116) by DM5PR07CA0033.outlook.office365.com (2603:10b6:3:16::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 13:34:17 +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 BL2FFO11OLC005.mail.protection.outlook.com (10.173.160.91) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 13:34:16 +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, 31 May 2017 06:34:03 -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 v4VDY363016676; Wed, 31 May 2017 06:34:03 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4VDY3d3016675; Wed, 31 May 2017 06:34:03 -0700 From: "Dupuis, Chad" To: CC: , , Subject: [PATCH V2 03/15] qedf: Honor qed_ops->common->set_fp_int() return code. Date: Wed, 31 May 2017 06:33:50 -0700 Message-ID: <20170531133402.16629-4-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170531133402.16629-1-chad.dupuis@cavium.com> References: <20170531133402.16629-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)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(2980300002)(428002)(189002)(199003)(9170700003)(87636003)(478600001)(105586002)(4326008)(2351001)(33646002)(356003)(72206003)(76176999)(5660300001)(305945005)(86362001)(5003940100001)(106466001)(50466002)(36756003)(48376002)(50986999)(1076002)(42186005)(81166006)(101416001)(8936002)(38730400002)(80596001)(2906002)(189998001)(50226002)(54906002)(2950100002)(6916009)(47776003)(110136004)(6666003)(107886003)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR07MB418; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC005; 1:Sqtgzj4zYaUIR/3pIjTcVTB3XPiZWC7NXFAfrNgobCd9mdR8pqtgMEaT8LbitGSA/RQ8WfhWIP6RJAZ7Z9h+im+63vxpTo4EX1QBQLCVxClbK8QRu9u1qQgtC9n7YGLK46AugIa9TWr+mm5MnwxhdJA8ejOSjwPJ91YtJiKZhH93+Y6+aOjQGhayTv9F2aqDwg0tF9rSRShA25MasDdFXKmEVWCgzYRqpOoAjhvqUsf2BMHGfmYtnAtINNi2E6/xbfbFrreBFJN8AzuHOVoYbBceOnYZYclHU8+c07N+Riqc/DxFCK3hbbDw9dyrYmyJADuph2ddCwzKHFdVH8QuyCWusJffgR8PqKk+gpeYYFs5uYm/Hkakx/GGxuxvGb5868o1jG5RR0UYvmLlCReJMfWLsANIGa5gY3Y6yMcXekRWyQiQT55qnUXKP018CMg1TX7QpSSF0uvGsXiC4kCWOA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR07MB418: X-MS-Office365-Filtering-Correlation-Id: 8078ccf7-3a7c-4c31-15f3-08d4a829bbc7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR07MB418; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 3:3OSDbmaS+FFCtlTpmMvr5vLB1l49i7gOyuepYcBgJqfC3qGtK8Y/UT6danD6k9/9gbtgtLt/zNsc6iz9/Q6H8cFC3Qwskiy3Q+AUBtVdtpZwwSLuUUHyADJWycmQ8DEqgkX+qZFSen43Ipc/5Ru/CxEfpYt5v+VD20BxvQmOk0udKSfKkoy9JRT/G4p+yoUBq7ZaFkzN/9CqzNz2JnghPpEm2/tA7GZXUcepss7apuyA1PIeGKiOwdZrMlzHLip4zf219XJW8UKngOp4EA2KALsxKQ9e4T7SfX8nJRdzOPom+smep74bfvYp8ZnKmXm6gax0I5BcVfpeKXlZCOrXeJvjiit4/DHw/GCQTAw/rqOpJkRm8nDGNeF00uaNtGm0kGZBIFiiyaqF7yisPDvikmcc8Pd4Lbscn52VeSlIgD42mgZVtyGzGjTyBr3QTvr8ugi2I17fAgGBWC37v9FQlvBXJ+5L5aRc0+HMwV5MMN097BEOKuTMXiVW67qx8LRX X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 25:KjqwUdZuqqIouhc3zZgbWaUin3NN+Wa1Tgpq1uMbrTF9AloGxBTJSDWbudqm4nwtD1i9d26jcnkbN88rE/3dd8LEEC57XvAXCZucEvQqdKXtnkHG4iD1cj9xA+VWYhrXXqAmilqherI4XqsxEB5RxwUoXZT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jthSe2j5J3C3hCnY/rvb7w1gAMaV2qdPa1tGSFvwDB6e0hjQ3ltZ4CrumWmG1q7CIcJLGGvgtK9net X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:BLUPR07MB418; BCL:0; PCL:0; RULEID:; SRVR:BLUPR07MB418; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 4:OLzkEF5ans5s/ADwHfHeE6v39e5ROn86DmtmhpcOCTQhAsh6IYFh1DuVN8HcD6Ta9i9e7UT8DGd1xKDwfjNLW50yXbfkBYCoXIFw3A+lf5uu4Ov5J0j7DBge0gnu1PMVsGQ3l5DYQVHcTartYIECne24idMmRfxx4hhLoGOqc5mXAx+TA24EL0ev1WCbOadVG7R8C9O3b+u9xpGM2uYyZP4HCHpBs7gSBeWUqZ3c+wWJmJ3piWuAGB3ZpQa30ovE0xYqWV6vM6BpbYIOEFcbVyhKxDXEmrQi/s4Zj3sWGS6qXG8kJCIG3//4RTJMLoppKibov/OS47w4uT8EQfaKUAYFx+6m1rM/KzH1aEOmSJh8V6TKih2jCFEQhNIt4XyJZVMW13VBxVB3KGf3wcxrptyuS64heMknxvYS5PJprqJK8okBgTm7cozuALBw1dxBYJ7y53umXP/00A09swGAXEgFHj6PBQpXEJ/xTxQ0eoH+RaS4NXc9JT7A3MnEzhE7XQB1ZgqvQS1EBZ4u1dr3iCiHgeQJH5Mdd61nwCmqlSiYKuh40oKPtRsnioaNRQr9nICTkTKjPtQVK7yN9UU2uuR0YRXA/bkkPZnUNf4YRzlZLFhay2eH2ZoK/qSi98YsNUOFZXvxz0GLDzYapuIhin+H4F3fH0TFSy6ZEEV3xS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= =?us-ascii?Q?Pvcufs7dQdmDqxjtJpL2pLcdTmIIqfDZlVgwJuY9VsVKfGrXFFDTSOGQOXmg?= =?us-ascii?Q?wQW4tEo4cKZ0x7vK8fLDX7STNfsTvjL9zZlFVvkNSpewJL+8ppxo+d3vOT9/?= =?us-ascii?Q?4V307dVJz+ninLO7ntUt1em9Ai3toExRaTebfiX/QBzl0kH32xIPxa7P0Y/m?= =?us-ascii?Q?O3PGUzctnLdsMerTau0gcazRQ4VhFOAnRgbINrUabH12fdsrTxSDlx91THt7?= =?us-ascii?Q?QtLyM829Qa4R8p90TKB2GauIVuVJVCPPI0ICea8KKvWw5bCFjHSk/xupcIIN?= =?us-ascii?Q?k6LaPruIq97WVbd3aEpu/74Wuj1IXa315e+zVRsahUINA9wrfXsM3A6GxyCF?= =?us-ascii?Q?7ZBJP0493hYTkDwpbBHR8UjUqTzL19EheIp9FmMhuckNWLKFP//Go3o/Y4g0?= =?us-ascii?Q?AIs3osP3Cbe9CbCRmdpQbt21szt1FCkAMCyLgjX88I20YpzjOIDg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 6:UcVhVdhsTd28XCEOgngj4pjB6m12bXWg4v9qhwrGzTfjxzUxs8UglZCWOPTtZKFYwjmo2HxoB1HpkGqNf1DCVj2mC9TMY/AkyyZwnCbV+miVK9mEZxZcDOWGXIXhHO9Dv9Rr4X/4+aQmU5yvb23773OAf+7nG6HTzLuV9xC2XDu181woOB/QAjZyRMktpldl3mL89dODZVwIBkWVEzp0BEhDe4BuYQlBr7zN+7+tFYYghlw8REGZOrITirtOVlh6Lm1MvP2d3hMOWSJzi1iV4BHEMKTTOebRaGkvoUfAAiFSjLy/UJqOJqDKTNVer5qTww1f09mbPC7SkA1hVRRJC1lxgnj0xipLOuh+D6Kj6BXsaGYWO2dgOgOagfp8FbZr/Z6dX8RShbPBwXPqaigOgt0ZrmknXewL9JhI+0MYVCroB8weeFN5wvTLjMB/PvZXqtshIbHveROeZ1aqe3GvdndzSrt7NhtolqIEoHU8WlKNfVHDEIDaKEoTom2Rq0ErCr5XphGCww6UM+4Sxrv78g==; 5:QoNxC/npgTmMxizO6/skGYTXVWUUDiYWbgwhxZO2CcSxaEuZHdL8PTJ4+f3qE4UFqbEAgQKKCHmAf9o23xqfvq/4IUE7ubd1VGum4pFxvE9xJAFmiu2Zsp2k0exx5cX/MwR9l7TSyMJ2ZA60cAv/ow==; 24:6JLS6q8zsu+PNb1/viSCx2Egp7qRUcczZYgqHp/v1qu1kCu9wnGnlk1YQoQgB8akjSHwwzTLnucBPqssp27RbBAZ6OeuQ1/kPwPcl/uhIZg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB418; 7:ARDvStJ1He6kWozwUqhA8JB2gcEWzjn7Kw8hLL8QlyC+GiSlnwOmppBSUkc2N0+NZtPGVDELy6Ydd/yEqFnYT4qN6wuWjJd55jZrgtQwpgvhsUSUJ/yPHdic1Vi9zIFP5fdoEhacgpiTkITh4bm2JvFPGmd/aViTQStcbJyInS6amC/iOVhpOd05jt8dzAPPLpK1GI/28eqtc1BMuKFg+o4xaAyJkdl83aPherxxX18La2CRpQdUrieXwvnyaHSzGAlY5NwemXJ8HyHDXCnjmwdWWERurYxc1nHZY5qA3pUZHvazelVwN/w5A3Sl+aRPnEu9dkjsKgPue+V715anUg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 13:34:16.0162 (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: BLUPR07MB418 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 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 --- drivers/scsi/qedf/qedf_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 9457665..884103b 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2035,6 +2035,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)