From patchwork Tue Aug 15 15:57:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: edward.cree@amd.com X-Patchwork-Id: 13353955 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23C01154BE for ; Tue, 15 Aug 2023 15:58:16 +0000 (UTC) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB941FD3 for ; Tue, 15 Aug 2023 08:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R7JpIt8rnxD/APhleTA0RSjj9Jd2PYqQxc8FepYDaNLBqrFPSCPF8ji4LQcxa5hrLDnN0eUaS/2mJKwKuRApPeM1qjRrsosaeyCd3YPVHXN44nEtGmDA8YGJtQvS31/FOnIyq+Z7KLg1E94w1jAUDjfvASabOyGbCxiGmIasrZ1STU1woaj7r8ILGpE0IAXan1D9wW1VJsvT8EGx4t7Fle0fjXB9edLq+U2z/V+NQti/jzm+I6mZNdT2s3QrAvV5BQ+cGSIRrPOmM0J8KXr3nnj7nZblCwwj/gsGp3uql8GqwtmzKVMhyecSRC2Ax846Nfw7BdByo9zakJCpLfmg7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1Yfr+g9z6+f48ikT2cgkd0PjknPU7zg/wcZ20M/MkUM=; b=MYM93Cobutqn2WGAoIsfBvc1doXzXRfZkgyJ3W2axKMYvk+4D16eUSur17Dj9yc6c6OnOp8oEDWpdpGQtm19Tntc4G/ioyRQB+bCMxkrsu74U+yxGiigbmacoVHhzDMEHByMURVDoJC2Ai7VPSLKWMaAE+dCsEUXheJ/vzQmilfvkg23GonDH9yaZKVnuURcKnx0yRa40LzJEY5ulunlfGTWfVuM2wAGPKcBsBh60aBP6KmbwnhA6a5aXlj4wV4ni8eQhHzcWJB1YllI+DaF7+8RxslqSFA+kKXk9sizfk6cz6ZO7d1/tw50Tu6d6pnqzGOWmkBR4GwOFD54p8u/WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Yfr+g9z6+f48ikT2cgkd0PjknPU7zg/wcZ20M/MkUM=; b=rpE7hEQxxLLykt5JkvkBIbUQkjcvelD3vrkIa3QY+toC6ZGspwAAsclHJkpn9Z9OqX5pfTHKd5y5N6Rx6mCqDgaOcUAHSJWi4PApcrvlGXmrH4Vwe9bwQVFcygUUwrkWwyI7dQrF5yWKSggtH0M4ALXS79GlazJ5c6dIskGtBX8= Received: from CYXPR03CA0090.namprd03.prod.outlook.com (2603:10b6:930:d3::26) by SA0PR12MB4381.namprd12.prod.outlook.com (2603:10b6:806:70::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 15:57:58 +0000 Received: from CY4PEPF0000E9D7.namprd05.prod.outlook.com (2603:10b6:930:d3:cafe::74) by CYXPR03CA0090.outlook.office365.com (2603:10b6:930:d3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.33 via Frontend Transport; Tue, 15 Aug 2023 15:57:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D7.mail.protection.outlook.com (10.167.241.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6699.14 via Frontend Transport; Tue, 15 Aug 2023 15:57:58 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 15 Aug 2023 10:57:57 -0500 Received: from xcbecree41x.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 15 Aug 2023 10:57:55 -0500 From: To: , , , , CC: Edward Cree , , , Pieter Jansen van Vuuren Subject: [PATCH net 1/2] sfc: don't unregister flow_indr if it was never registered Date: Tue, 15 Aug 2023 16:57:27 +0100 Message-ID: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D7:EE_|SA0PR12MB4381:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e74e790-23a1-4f87-50eb-08db9da86571 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UgkfVM2R+3l1bD5rXe+74dSCDpXLLNyZAvinwBWc4E+OQ5sT9ITmn5ENO4L9VaLmVoqgKfREXGLUkREmNodyH/M6WMF+Nl4gvDa0NUp/DkyIFS10w1G9yx5Qe56baDtnttKR1kQFF+sXhEPLnagPDpBRhwoeA9Efty8xofm3b/zwJ86AFXNIp0G0NNc+fN/gDbc7plJiaAOwyqYitY8roazVX9WownRWHygwNO11sZwc9kGQLO8LBBO6HndWPGVHrMwms1W0+GEj3l4PeIswOUUZhQDPEOkP172Xl3DBrUvVxsyZOwbM/dqQiUQAkRnsXTp2TM6wiZK7Afkwxae2vM/XM5w3wnH83IHtCVgJqSAiSN+erjl2tpmeymEoEAAspG2mS2j17iEsjkUdDtGomQgLiWodRjoHCChRGSRMaKUorJIWhDbF77f/ktDOloB5NeO0jZ8R7hExjiIdqUiq3n63kzd6cMcz5XCBAh0g/TqMoVMjjWhcWJ0EPFsx9fmSZ9WOysZ3qVV2MxBsUx7Zm8w2mwPJfUCCC0AHaT6qLLkxmwJ0LcdTmjpTXUlN3l0RdzOxeZgWRZcDablKdnTdBnoUo3q5NmblrTfAadO70TRxF8Apvcs3ORpEjThj7bmacNlVtPd4+sVwnxst2heh1yQiqYR39YwwR3jb7vuOzd0/kqiTz/xyZpmmN0gKzZjI1F0SDO2c61bMLUmIwZR6mA4QHyPFQW4eTbEjdnPec6UeTySknGmLhwTCdRBAjAMopnA+SEYHfCz3Tbg3lJEt8w== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(396003)(376002)(39860400002)(136003)(451199024)(1800799009)(186009)(82310400011)(40470700004)(46966006)(36840700001)(478600001)(36860700001)(356005)(426003)(6666004)(86362001)(36756003)(110136005)(82740400003)(316002)(70206006)(70586007)(4326008)(2876002)(83380400001)(55446002)(47076005)(41300700001)(40480700001)(8676002)(26005)(9686003)(8936002)(81166007)(2906002)(4744005)(40460700003)(5660300002)(54906003)(336012)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 15:57:58.3955 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e74e790-23a1-4f87-50eb-08db9da86571 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4381 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org From: Edward Cree In efx_init_tc(), move the setting of efx->tc->up after the flow_indr_dev_register() call, so that if it fails, efx_fini_tc() won't call flow_indr_dev_unregister(). Fixes: 5b2e12d51bd8 ("sfc: bind indirect blocks for TC offload on EF100") Suggested-by: Pieter Jansen van Vuuren Reviewed-by: Martin Habets Signed-off-by: Edward Cree --- drivers/net/ethernet/sfc/tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sfc/tc.c b/drivers/net/ethernet/sfc/tc.c index 15ebd3973922..fe268b6c1cac 100644 --- a/drivers/net/ethernet/sfc/tc.c +++ b/drivers/net/ethernet/sfc/tc.c @@ -1657,10 +1657,10 @@ int efx_init_tc(struct efx_nic *efx) rc = efx_tc_configure_fallback_acts_reps(efx); if (rc) return rc; - efx->tc->up = true; rc = flow_indr_dev_register(efx_tc_indr_setup_cb, efx); if (rc) return rc; + efx->tc->up = true; return 0; } From patchwork Tue Aug 15 15:57:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: edward.cree@amd.com X-Patchwork-Id: 13353956 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7E90156E4 for ; Tue, 15 Aug 2023 15:58:17 +0000 (UTC) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2084.outbound.protection.outlook.com [40.107.93.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42531BD4 for ; Tue, 15 Aug 2023 08:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YvatVkl5f3tGgqjJO5xEmXtdt+Xx09s/OhkGzQlj0tdX2wsnYoWTVMzOjFEJz1k+M1/WAXS0tTi4R5b7UlqONFi4QPPO/qe6mXUwLUQBDt3lfRW0uUYvrY5swiFz0QXMMShLYG/Ox8zX2rqZxrIDFHjZozywViVos0uFChyL/NgJsXD63zTNBbYpwXb5Nn6HsOxynfd1XWbJ79K2pHjDwjQB4xiQVQ/HLrAleOnjA8n5JpJgh6DVZrd1dhJux6bNsbco+KZ/gPU3pWFz+pv7DHVVhOfNHi0WKwa7aGiG/4w/ASSTGAiWQ4r0Yr2CIS/HQYHCPKEz5Q9iZkcgoLr1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=79BFSJlokQtPOfsbenkcjeU9SGdBeUendqkpKkSAxy4=; b=UkVBYI+yPnB13+9Vmvp+NZ66FxwvHg0xHs3rD8pIZjCok9QnjitR0Riyw9RaZcEozU8gxEvTBg81CXrv/QdzA7PwtiLaCdVhb3BskWJ2O+Y4gKLar4FUkZH61xyyP3etojFhTCtHAi6bl5FTlFijjfyLUmZITM5LYlx4gSfgppWw8hKWGLZJTQRHnVKKltuAYuBS0l62qJDzo/10XnTFx3vP7XATZBRW8L5Z/K+al34eQEapM8ZcES4PEvrv/nfZyuIoGZCJbC+0dPfguyZNERDRXPmzKk/i7T1TgjS9N/ylLwrhXzY7BfQMrAJjxlwaIKxMLDQY/DRWnYKpvLwp1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=79BFSJlokQtPOfsbenkcjeU9SGdBeUendqkpKkSAxy4=; b=ihdQBeHefwEpJKdVhp30Y1aq/MWk6Bjr9Ynu9jMrUFGn6FKPZe07BBgzd46pDe/i4v444GfKUz226+lRTXF33MYijWTJGXGkvfTn9YtiqDW4UElJcX/Bas7gQ4vZS1xWvUlWBj5hdGr5gn1gAMKZ0pUvdHBFuABivjrhcAC86ZA= Received: from CYXPR03CA0090.namprd03.prod.outlook.com (2603:10b6:930:d3::26) by CY5PR12MB6576.namprd12.prod.outlook.com (2603:10b6:930:40::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 15:57:59 +0000 Received: from CY4PEPF0000E9D7.namprd05.prod.outlook.com (2603:10b6:930:d3:cafe::74) by CYXPR03CA0090.outlook.office365.com (2603:10b6:930:d3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.33 via Frontend Transport; Tue, 15 Aug 2023 15:57:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D7.mail.protection.outlook.com (10.167.241.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6699.14 via Frontend Transport; Tue, 15 Aug 2023 15:57:59 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 15 Aug 2023 10:57:58 -0500 Received: from xcbecree41x.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 15 Aug 2023 10:57:57 -0500 From: To: , , , , CC: Edward Cree , , Subject: [PATCH net 2/2] sfc: don't fail probe if MAE/TC setup fails Date: Tue, 15 Aug 2023 16:57:28 +0100 Message-ID: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D7:EE_|CY5PR12MB6576:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ea36413-26e9-48c4-0db2-08db9da86630 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sCx21tmKtQvehZJhhYoLshaFQbP4n3MRMFV751ZpdKNGjxJcJ7zxl2ZCkttB1AMuLb2x54nRNh7b30d4AlZoo7I/Kwv5s3EFli6LCkYzmeLym7kkIR4NIISyMhUGKmAi2By9PAx6C+Q1j7ul7cS7P4QDspmMralUYxogUwCMU9Aa4ojC4eEzJL7eLXN8Fl7FaFtSeKNdBLl+c2t5XV3YSzcafg/XBRp1Fzbd6CFaAKEOL/op/VW3WmAZJP0+mJu7VmbjOzU3Eir4zUy1vJyy5PyYt2qqnFZO7EeyxZkCOCPmcwsvYOZHpGn3Lfq67L6KVcrdmC2vKsDtTOYN40SkE8Fwb9hEJd0JCyxJCqe4M4mv3cYzc/v8pCrB3Q4Oaw8vn4RqyTrb1Ozz2Her/wJfoe2Q0dRjHv3PyijN6RIGCr/4Kta3JdALGh0EhBc7d+Oj1VBb/58TXLEKflJlEzpZq5LE2KynOOP6kJsx3vqJLUeJMW0qpDoaw5fmkjstCK8IlJEFuMkQDsLtZbmDokH86/tDIfQvfPv8dQjd+i7PqBdcvTz3BleuYGP/anG9TDKZ5bmlbYYOsAOa6NoqMkU9Z+OsybWRJr3fqJsm9bpdJejXBjWz2LHpw67w/w8kVUcHAq3BO751YRV2VT4jWsxF3K9QoLNxKhgCF1/B9UokSwMVT7NOdWd/K12ZdGm7vUK2GE9amP6VGwT/fOGk8GlxIXH51dI3wf1fBcSLPoWHntNcJAgS4kBg4xNivXJPfBT5lrdj6Tuic/p8g/pr8AR3tQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(396003)(136003)(376002)(39860400002)(451199024)(1800799009)(186009)(82310400011)(40470700004)(46966006)(36840700001)(9686003)(4326008)(86362001)(4744005)(36756003)(2876002)(2906002)(316002)(336012)(8676002)(82740400003)(81166007)(47076005)(36860700001)(26005)(426003)(83380400001)(478600001)(40460700003)(356005)(40480700001)(6666004)(5660300002)(110136005)(55446002)(54906003)(8936002)(41300700001)(70586007)(70206006)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 15:57:59.6298 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ea36413-26e9-48c4-0db2-08db9da86630 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6576 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org From: Edward Cree Existing comment in the source explains why we don't want efx_init_tc() failure to be fatal. Cited commit erroneously consolidated failure paths causing the probe to be failed in this case. Fixes: 7e056e2360d9 ("sfc: obtain device mac address based on firmware handle for ef100") Reviewed-by: Martin Habets Signed-off-by: Edward Cree --- drivers/net/ethernet/sfc/ef100_nic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sfc/ef100_nic.c b/drivers/net/ethernet/sfc/ef100_nic.c index 7adde9639c8a..35d8e9811998 100644 --- a/drivers/net/ethernet/sfc/ef100_nic.c +++ b/drivers/net/ethernet/sfc/ef100_nic.c @@ -1194,7 +1194,7 @@ int ef100_probe_netdev_pf(struct efx_nic *efx) net_dev->features |= NETIF_F_HW_TC; efx->fixed_features |= NETIF_F_HW_TC; } - return rc; + return 0; } int ef100_probe_vf(struct efx_nic *efx)