From patchwork Tue Jul 20 17:35:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12388939 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8776C07E95 for ; Tue, 20 Jul 2021 17:40:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 860C861004 for ; Tue, 20 Jul 2021 17:40:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231951AbhGTQ6C (ORCPT ); Tue, 20 Jul 2021 12:58:02 -0400 Received: from mail-eopbgr20056.outbound.protection.outlook.com ([40.107.2.56]:38117 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229708AbhGTQ5c (ORCPT ); Tue, 20 Jul 2021 12:57:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kults/aRRAVCHXnkoGCSrpWcErh561X99BATN21YIaIdCSRsmEsLjLERHyez8v5qS2CM88JkQxnNrocI2rFmfLXVt1KujjjHRIhDttJetxyiCNj7LjZ+V+868hh2FuysnHRPFAD8wYLCPES3fquSCa5bJCMTG65STcpje08v6lN4d7aq9Mh0MHLQXOJbM+qVJ+taCYbmlR5p8SgpGwo61TaFIEPMn+hElDc4jswc7qoIvJOzI1oNpuZ5iPMJBro46gz13WpQ39I6Xi/X2fmupc6DAaHjn1grXsJcyfGehMuJFIFsiWahRYF7ZEV2FO+GdS4kFP0UquI6h8VV/DHmvA== 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-SenderADCheck; bh=xMH4ZDR5VqSEDXoo9mv7uNvBHMPDB/4/e5ont6OLXzs=; b=CdA8eqMiYyko7QyxZ2KGPqGYmIk93oUnZjORTWPLNquQeRw8XGI/niE5mytqe5DrQkc4f869sjFxz/qcCRPGsh+odCoJ4R1U74LB2KC936sohMENoTWGXwfCKjIU1ggpq6lHhEWpLgHxASSTzyYJvAm6f9sX31EBlvHs3QOv9DWX+DeWzdCCbTMODlCeeMG+SbeaVJ0ZmRCTwwducUXhDHx7cXkB/hD/rxJNE/j315lskzM8oo2Vm5JrYG/5iux4ywtVFzlMW4tHviG06u71EZ7r+g9cdV2jto1Hy7rHv63EIXQBe5Xn5RcZPC+B9bQLmsGDUzYHFH1phOgdubEq+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xMH4ZDR5VqSEDXoo9mv7uNvBHMPDB/4/e5ont6OLXzs=; b=IZJokg4CkpNYlugre433jreRU7ebFTNGlonhZULaJO6vidBDAgLKvqgcvdB/yHnhkg0q+mZjk51CNLC+gwBpa/BqPear/FX5t7DUIBDCiyV2JQ3Usb9LGQFe4/W76Efni6u2czclK0DKPwMNxOqfnVfmkm6HQ5rj0iDW5h3RNvM= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR0402MB3616.eurprd04.prod.outlook.com (2603:10a6:803:8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Tue, 20 Jul 2021 17:38:08 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0%2]) with mapi id 15.20.4331.034; Tue, 20 Jul 2021 17:38:08 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" Cc: kernel test robot Subject: [PATCH net-next 1/2] net: switchdev: remove stray semicolon in switchdev_handle_fdb_del_to_device shim Date: Tue, 20 Jul 2021 20:35:56 +0300 Message-Id: <20210720173557.999534-2-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210720173557.999534-1-vladimir.oltean@nxp.com> References: <20210720173557.999534-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: PR0P264CA0054.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::18) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (82.76.66.29) by PR0P264CA0054.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 17:38:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 431f2dac-6db8-4c75-3cf7-08d94ba52364 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3616: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V9nVLKqsMkX3rgQLX1nRA4JxY0t5bzUPHCgexbBgRWVgx3YnMXUBi8JPm148w1VTq5nq2A7sF5xozNYN/l/OZe6jJVfD1T3T5/6VzbqYcJNp0Huj0zVhxKUsXmTw75FCPLJxqUTUqh8Pwz8kNrHLAcrNM00R5HTMFaU/xmTcpNF3bCNj5nj3yrBTAypeGRPu98mIDrCHCtrWsSb1Yf+snUadQn8eQ8NOOzvYJ9D/ir+5fdVNB4FspQ41J/vKIM7G6VA2InvGFiOP/YadiE/hFufHgvyZlao7adj2yNml4ZIX1lpkyDzAncQMSSSO0cW99d3OJPCRmIYE27xEuBKvD4BW0pGHygdDfStf0iYM0hkFxExkYemasvuqIh/LBhHjzfUcXK/d69Ua0PV5Ycts8w/1Yfa4IhNhNZYLVJ6MP7f6zPzqOPwBurka/XD31QepRHa73vPEttfOm0Yurvk0I6B8Pq7e9hlwpsWpEEQxO3mkyyda88IUaJVAhXUQfNDapocB8MeOhdHx4mRF2hjDdo+5xbjQo9Lihj1+SxYRDwHoU6JbucYhJsxqJaa1D9+1+xQUaUQcE55tco6qPOxTz8VpsnzOaZAnB14Zg7zrZu2AydB1hNg2cAD+k1thwmT1bgmhnNPUfT20Pm5MaV1kyUMmyEWRkUTdsFyiS0wecBFHiLB71FF64dzEMF6ILhRLSCJJaeRmAxC8Gg7AEzaltA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(366004)(136003)(396003)(346002)(376002)(6506007)(26005)(66946007)(6666004)(478600001)(6512007)(186003)(1076003)(86362001)(52116002)(110136005)(66476007)(6486002)(36756003)(4326008)(83380400001)(316002)(66556008)(8676002)(956004)(38100700002)(38350700002)(44832011)(8936002)(2906002)(2616005)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6NOJ0OIgUQyxsMsBExlX5sF19nSDQ6Pl13ur/W5JsgxVyEKnAjoiMna+xpnpPlfdHcoMTT/ViLfvnxEpo9e7dduFkmfTK09WUseJf3jHEd3/4N1hACOf0/T54RnLe19n8j09I7zRfXnzNx2dGMW8yx/Mu9jMj4BDBuTN+KTeuEjz7bJKBDPFFUQc1ivOv9Px7MLrCYWkFy9KiCgOzB2SmlaNdbTpC1sQLmrQUaB+UL2QwZUWDPvRQ9gwkx9cRci+jcGc0XFDkOEG36p6Swv+HFjZwDfegepEMqiESbWW6LyA3QST1bc5Fg8u0+2Z2SkugE2yNOikx5c9jMSgMKJFV9wc7tTItXY5n0pA42VzwMJFgFTkAelYj2k55SGSmLNoB93HZWY2YmDJyyX3vbfwt4NYRRtFoqfl4lK2LDKKc74JsqciNlex2Huqk+0NaLOMRixowKUXAf1JkIKRo6PKeSJ+Oh8d4qXusty/7JH9pC5HJqplEMg1xInRfpwtV7+OJHh1Fu5TVLR4fOsGDm4XS0dc/YzAn4mz3UNRfx4FdEfbOYAXd39MmynCOCABVLS00pe80OSg3oZ2BRKcjJv4xVWVFkYZ3Rz9ASjEUPKzeW92maw9/haAFYaD+k6FftuZOpMaYx++TWFNqYEGLVlPoGsDafazIQ/ynONiX+ZFhuM7QUcSa+6nNPHHb67bsXVF0qt/lk5Br2RjFXxcUXuiury/DY4uPUGbpBBfYM9xsQCUrT4dDDCrac9rgnLRBQkH8R4L9tsw+oaqA4TnvHeVHsaOlVQ08oyhMgFBRD4BJtPlnz4q96TPblMKtn6uOeEjiHZm1p3zj2GU1d1ZkQMUe97jAxnWxHtmJBeIzPX2ZPeepRsaB5n1eoVFGz49adADgmByYfHorBiDqZvh7yMCDSPjGetzcRsRbRfb/Ga7XSR3UKT9Nlqpjl4TfS/je3YXRFo2M/dmN4KdXOhC97RWr3UEthjDJu2Kk7mrUEBUQbx1Ls81Kn8JCpGpMDOy/+7dcjvunF3tGbeu1UVxx5Osl7u05WPtCAb3hUtaV/TFPYypDF8fso09oKJmuHmSnXnXo+jamwOXBTUm8bPTZ9L70sK/AidbC7mUuwS/iuHTJ2HKmytjzNJPoRyMUON0jjXs78TIKysS0zrSKa16a0l89JRqZlTRGv9MTm/jlmYZC1Fj0YMvXAnQPRz6akH1ICPPGHsg2aRX68eB9t8hbIUgGNWcY7rXHueWL0zEdPk+E563WiO8wM12HBtWa5fsCwMPFhO3R4OefOnwOVbAp+Ytd5LD/KBvtZQLBg4qQo0QjU+qE9rcFdNIlq+VVDH2hDg6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 431f2dac-6db8-4c75-3cf7-08d94ba52364 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 17:38:08.6933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JwIY65S0S+SvrlZqLmEUL0Drz2IDg8bSiZ7GNKM/MXgF6K6KtmRSl1Ww1KBSYpvzSrF9UqiBvEFcd1LE+Y7cgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3616 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org With the semicolon at the end, the compiler sees the shim function as a declaration and not as a definition, and warns: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined Reported-by: kernel test robot Fixes: 8ca07176ab00 ("net: switchdev: introduce a fanout helper for SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE") Signed-off-by: Vladimir Oltean Tested-by: Matthieu Baerts --- include/net/switchdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 6f57eb2e89cc..66468ff8cc0a 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h @@ -406,7 +406,7 @@ switchdev_handle_fdb_del_to_device(struct net_device *dev, const struct switchdev_notifier_fdb_info *fdb_info), int (*lag_del_cb)(struct net_device *dev, const struct net_device *orig_dev, const void *ctx, - const struct switchdev_notifier_fdb_info *fdb_info)); + const struct switchdev_notifier_fdb_info *fdb_info)) { return 0; } From patchwork Tue Jul 20 17:35:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12388937 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DDF5C07E95 for ; Tue, 20 Jul 2021 17:39:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 023E060FE9 for ; Tue, 20 Jul 2021 17:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231771AbhGTQ62 (ORCPT ); Tue, 20 Jul 2021 12:58:28 -0400 Received: from mail-eopbgr20056.outbound.protection.outlook.com ([40.107.2.56]:38117 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232076AbhGTQ55 (ORCPT ); Tue, 20 Jul 2021 12:57:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SsuF7qrJ642iMGFi8uKk5ylbaWg6moZ3NX4teHgrEf+audgTepa+uOWCHcWYizAQIfmyZ5w2neDEBc4S12Ct4qvRMGfXNP3QnBwtvdbCjCm5vuCs31IccbXGYuwNkvkQM36PIvyKQWD+cQRdUAVjzrFRHLIu4VdQIYgf106NVb3N36gbBXQohMUomQI3AFrQpVPgv8Dn6D5qrPqH8RTsLcrWmPx0ptguJdkiYgXzXOqRzU+f5dK23bNtR1f9uuZ5mfkO3DJDjXBDWZtOXTadFKR4/HXyjVarNKRckouxgZogMIIoRRsbZk8p/6A51Bn2yHH4onNladzDY87tyNOsDQ== 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-SenderADCheck; bh=Y7Mjbjr8WQl6TdgQ81t7bCtUpb8w7tsPguhkUAHv0Jw=; b=F2eHQAXcQM2GWyNLFFEy4U9yiYqZ792KKiB7Eelr+dhT25ItPEK8CfNf9Nx9YgNYAuvWZS/puXKctIRja1du8WR+K0DDqPRNtyueN6K3s+nXz2kZkOuMmgck15M3rXD+d6k00JgIhWulk+ybQob8XHgLDD+IfGxbWy/W2XDBgtb2KOsH/+Ena580VCjh2fx9z+j1jpVhFwcsLsolg4x6BU1RlTDJxzE0WPc94jKmHMOo4kQYSNOROD8YEM5IcukMN0rWpS/md6U3ViTzILGV3YBA5RU3KBJZaK2lFnw00SYeg2UxBJugBC7q5iul/mKrbbKmsn3/3wYXF1M3kZSh3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y7Mjbjr8WQl6TdgQ81t7bCtUpb8w7tsPguhkUAHv0Jw=; b=RuggENXnjv7vzTzd05IJ/+qwOquZF2uiucMWI5ef5QD3wo+2acucJw1o5WCowCmEy4NcawZr1hHzW2gKR5wqg0QKvuPk7ARckndHReyfmeS7zHxQ/HvLLWsU/HoBIBgZt+HXs2CientxBrsQJwt833NzoXEMxrRVj/GGf9XV1J8= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR0402MB3616.eurprd04.prod.outlook.com (2603:10a6:803:8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Tue, 20 Jul 2021 17:38:09 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0%2]) with mapi id 15.20.4331.034; Tue, 20 Jul 2021 17:38:09 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" Subject: [PATCH net-next 2/2] net: switchdev: recurse into __switchdev_handle_fdb_del_to_device Date: Tue, 20 Jul 2021 20:35:57 +0300 Message-Id: <20210720173557.999534-3-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210720173557.999534-1-vladimir.oltean@nxp.com> References: <20210720173557.999534-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: PR0P264CA0054.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::18) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (82.76.66.29) by PR0P264CA0054.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 17:38:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d2d2bfcb-92bd-4f22-0b2f-08d94ba523c9 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3616: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E8IzQfNolMQ4SolvZO6PG2adgPVaKT7dDp2n4tI9lb6/WVzlFu32eHI9Ylo/x1G5z7KwqjHmxdfAcz0z4fgm+dETD/PNAzJhsV8/8mIyaT2oZvlNiRSj8I+TBheVEia00wSYYufIKi4ShfXWhFrLKmbZmwSFY8rClANvBH5Qk3bXGoIza+cBuotVwURPT2lG5g8QWXEYXkIptIMZvEVovzPerx+tJtdu7fj0ugE5VdwutOfKYR/yyZnXANL0XAq240sHcak7ptiC9B70Ea7WFla7S7dYI3HjOau8+5GGlY8H1b3a4YwH8W+dncTCpAMLv5/Des+w7u4mpoLhYILW8vihdzvVTKujt0kqbuuN97aQo/b8rsVWKobmPZneHX0KUqyOJo9RL+m0ksnIWF7EabcqF3kva/hu9UhMg9lGFplilFB313sYbjT5MmGNOWRvCf6IW4bHUqKn2UYIKxWOhKr38ScfYRWX+SwsvS3KXdPLs8jBmzKG9S5HBUibjSs90+uoYZmikxm4cC8DKWiKR3yHg6730P1h7OjEIJqHYE7NhO5sQfax6wDIkldvzfSO/WgXClpzyxCc2wzOzTj7wvp7PZICtZiSFkpc1ki+Ps1URKiMkzhNtdm0FaOf3jBRBp4YfkvpxnQqUQN6XXFkeAuu+P0lXQJvMSXxOWwQSDsejYaw/FfPfDAVSYrDntEa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(366004)(136003)(396003)(346002)(376002)(6506007)(26005)(66946007)(6666004)(478600001)(6512007)(186003)(1076003)(86362001)(52116002)(110136005)(66476007)(6486002)(36756003)(83380400001)(316002)(66556008)(8676002)(956004)(38100700002)(38350700002)(44832011)(8936002)(2906002)(2616005)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K887+KCO+eRiKyla4q9EbHyKre1uvsCYu+vcV76nR+dEPYb8IJABc62oQv2xU3wxfgFrqtN9XmMFnkpBGOa4V5cG1vNoLx/RZ2gH1AOk2vvRdd5sMCRHbQCHQMWY7iILF7wpp6dw2Cld2PbjuZ6QIAUCCPnzaxS7sDV0uO+IYP5ZSvF8kqT1QtdmYBwc+qo/dIQ5haZBlIoyI2jMW6i9nzof2Z2/wVnQ7PhMQpijQLPSV3i8inlMX34gSisaZBpyaMhfxqBvfGz+wVbvnwlSyb+k9Amv9qZCZozvmXRb6YjRwvvcj2vQ3WUgsDZ/u4GbAeXjBK6pPzc4PtOUHPKFbdLGooKglPsiZ0QDy++FRP+Qq1ocQT/yTZN4UIC02nQ2K3Dj1lAstegGYqUNmHaamCqhYK3LePPJ+XurrM0nFIENC+FyvIUbTC+qxOhfe7dXNbaUVITA4BR/u0jlNxsjRye7AqNDyeYUBWYG0FVXiBus6Y1JP3TiZUjJ4W7CfuVR0nhZTs2YspN6mf7F7RVjh39Xjr+JtkLsUUxvCEgaBm6cWr/tHsi9H8AEhF3zQr+LXighOWRoJsL4cSuq7zzzvqMBOsfvbFVGCOsu8A+ptHywjnsIJmzNvQvEZA1+eUFM2Tokhdj3MD6jIX3DvL0kk5Jrq2UTg8xh+mIn3FuQORv9Yk8+q66CX/lYRhFCYZP7Ptiug1/QfjEqMC0tTto1d0mFBA31sTJzOVIr45Unrti0073NLKmvZW6uQUU9qb2lrlPHKraBBdca8Y+yufFxPNIlnPyRejnt1XjEOdGKlzCVxvVeDqFr66jsr78+8iEREVXF8evfWv5p8KxPac6vV2hy6mEO2T2+frYU2F5PFxWQ3x1jYy2RcOJI5G494JhHEFIK1KzQsJPcBvbh7Y+4/J17JGA7ev2Z7qNJvFUyw5uD+9Xn16ufRkHbwPR703ew5We4Qvi1QZvFgR+QSrOTLsKKwmh8dy9qQS6grVapVvl/+A5f1rJOrOCm22OpeHDDZX3n2paMBkC3HIhdKQVmKz4+6w5w8uhDX45cVhnWFe1CTwAJSEvI+n5y00PV9QO5EWzY7YKQvNWREArBapetuXSNtG4bo2IFFZGFKxF+NPkeF7A+p1ZSiL+4LSMaZZBTdTd6Jim+fhzoEtb0prP7V5bhqOG7YO6ncyNNsRN8FrWGjdLC1l6kl0UY0jHqMG61cFIn+t5f8KF/+j5jS7GVvKCDE82SS0eooxjPohjYejufrlyXffBmPTF3MYzxBoAQCB4lfccRijUebsAL2slWcG6610tW09+n0lju09gyybTOod/6u5UxYZO339/yBtJG X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2d2bfcb-92bd-4f22-0b2f-08d94ba523c9 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 17:38:09.3140 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zI2Kl8JqgSNA/akvOr+QjwGfNpoBjhn14O68yrTqS7Rc0S0JYcj+FEbaDEaIWSPsjr+s2eHYrnmpXs3gCHAImA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3616 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The difference between __switchdev_handle_fdb_del_to_device and switchdev_handle_del_to_device is that the former takes an extra orig_dev argument, while the latter starts with dev == orig_dev. We should recurse into the variant that does not lose the orig_dev along the way. This is relevant when deleting FDB entries pointing towards a bridge (dev changes to the lower interfaces, but orig_dev shouldn't). The addition helper already recurses properly, just the deletion one doesn't. Fixes: 8ca07176ab00 ("net: switchdev: introduce a fanout helper for SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE") Signed-off-by: Vladimir Oltean --- net/switchdev/switchdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 82dd4e4e86f5..42e88d3d66a7 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c @@ -532,10 +532,10 @@ static int __switchdev_handle_fdb_del_to_device(struct net_device *dev, if (netif_is_bridge_master(lower_dev)) continue; - err = switchdev_handle_fdb_del_to_device(lower_dev, fdb_info, - check_cb, - foreign_dev_check_cb, - del_cb, lag_del_cb); + err = __switchdev_handle_fdb_del_to_device(lower_dev, orig_dev, + fdb_info, check_cb, + foreign_dev_check_cb, + del_cb, lag_del_cb); if (err && err != -EOPNOTSUPP) return err; }