Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1265665rwl; Wed, 12 Apr 2023 10:14:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YLmPnSRlD5IEWNjnJ0MvMWs0CPjhdsHZQwKmk2pbfr7GapETvc1fNkLBJ8RKRXPsLyucM+ X-Received: by 2002:aa7:d4c7:0:b0:502:4862:d453 with SMTP id t7-20020aa7d4c7000000b005024862d453mr2881003edr.3.1681319667395; Wed, 12 Apr 2023 10:14:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681319667; cv=pass; d=google.com; s=arc-20160816; b=cXcUwGEAWIqvtFkm3aHLGydOA20CT9DoLa3TDN/TttkML/nXH7eGLGVbCqH92rcowG SLN9eVT7YQJBK7J/koi5xOh3NRmHbiMZB29++xg70jGWGNC7uNluXB2zA3jiORZu00VX GqOUgcVZ0SNiP7CHRemCgimtTMwyeZZmUj2BVdghHVSoULz7GES8w1VJPlLn7s4sL4Z0 3iv33WmYaxYd1assYppaKed4GKnOh2vPtnWz52CUE1i9iX2u2+4gj3Ekctu89Yuhh2bR i2QzHOyFWVzOE41V2PoRabDw62RRQ89GhDYgjscAY/tcLGBmkptal0bkcXwpBifCpctg tdCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fJss1pujW8B+EqfyELKn/tjqPHKDdI33NPirliESpc8=; b=DJw1tH13sHlko9uSpy5oqENXwLFEhUdxfca7YXc2i6EZxra3rkj2i0cu3GhS1JzFsg O945eKfkuCiNIvqC892rI0FYW6SdZBE3l4dUB1zh0yIYsv4hcm15nt21pBBtNi6hKdNr mfpllzjjo3lp4xWVVl7c9issC5pkC5qxTQJEzA1+ED++W0HHsyKOjgOfOT14drPjRAd9 gwQVDEoICPRdptHjA1InR1572vjqkcsUEsTJKJO/o4uzWz0lyJD0VUeh5sKR1eScN5XE N00IScIMWymvwinZKBNYmybrE8fMySr67CQLZg3PXYgGjI75vOjhKNsi9tGj4mzcQeDi d3OQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SO3qfNbL; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a50eb41000000b004fd1ef9b95csi2542512edp.598.2023.04.12.10.13.50; Wed, 12 Apr 2023 10:14:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SO3qfNbL; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjDLRFi (ORCPT + 99 others); Wed, 12 Apr 2023 13:05:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjDLRFh (ORCPT ); Wed, 12 Apr 2023 13:05:37 -0400 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2059.outbound.protection.outlook.com [40.107.249.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 418549004; Wed, 12 Apr 2023 10:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MAdFk4WJzfyrFuNfVDsX2+AnJvDbl5RuavAGijJZLwJwtuSvp3XBO4Wh2OHwNzxTtTSOf0slNaTiQJSJ9bE7O63VQTiUzqOFznw84ZOiLs4b1NJTyY+ILWwcpaV9fJBMklokQ0BpTun00vnwjMfFKUbmO/c+I19LUvxDnfg/Sbq3oehRswIgudrMnh+XqyhaKM8eRumWIK84VsUQrE4G0owtLoVChJQy78fX0PAcVe5eKa1vf2hP2/W3EoKWxYmDa+j+Iqjogws8xukmbb5jG+YNMsaFxUA5dNdCheJOmKLx9QnKruaju6KxGyfT1wEM0ZmKi1uEAn6MPzpFovcG1g== 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=fJss1pujW8B+EqfyELKn/tjqPHKDdI33NPirliESpc8=; b=f8LmJJU2CWn9BA+3IafAqUZi0ycegiFHDu1dJg1mNxaHgUwmAri7ADpTXs95kaBccGkr54+KMz78tWrDKqc52yb8WS2MAz1Ulv0pNUHa1/S1KBp6kijflkgHEZXfREFC63qwbXNBdVpEETXbXL6YUJoWAB08Hik4343B+7eAIG2TcQycX8YoYETimaE021V1vm03nbeXtYV+XT6r/5TTxquleypzw2LEvhaceLwpQP6y6vf3Afr8y8sAfhaGJi/b1BejWv52XS1gFr1FNOMmNxZpBL+o4tOnOM14b+zawm1WBirj4zjmloVPZq+PJe5vmh64Gh/hJVDtEiKxEaRzuw== 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=fJss1pujW8B+EqfyELKn/tjqPHKDdI33NPirliESpc8=; b=SO3qfNbLk+dN0CflObNaLiZm7yaZCUm4cj+sC7zAIIPA3vorNZACpti/T5315nmJyx2jbhX7+hQ9A4vimw97daYtZBPBD/haMKen0f1pq3j0KQpWZsalxsh/7DhhiLmYJsW5b5qFVrDH3wjSWm1+1GB68YPWpcwmBOvjXY7aCJU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by PAXPR04MB9489.eurprd04.prod.outlook.com (2603:10a6:102:2c1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Wed, 12 Apr 2023 17:04:41 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b%5]) with mapi id 15.20.6298.028; Wed, 12 Apr 2023 17:04:41 +0000 Date: Wed, 12 Apr 2023 20:04:37 +0300 From: Vladimir Oltean To: Ido Schimmel Cc: netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , "Hans J. Schultz" , Roopa Prabhu , Nikolay Aleksandrov , Ivan Vecera , Jiri Pirko , Arkadi Sharshevsky , Ido Schimmel , bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: bridge: switchdev: don't notify FDB entries with "master dynamic" Message-ID: <20230412170437.26nwldbxydm7lgxm@skbuf> References: <20230410204951.1359485-1-vladimir.oltean@nxp.com> <20230412142733.6jhxt7kjf3nwqzsy@skbuf> <20230412162407.xk3okeiedylv6sqp@skbuf> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: FR3P281CA0063.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::13) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|PAXPR04MB9489:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d7b701b-f0f2-4718-6d2a-08db3b780167 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HTceV94Yi3/+12ezo9D/I/tPwEXlCh08klh757NofQWtB0O74MfiyjZMEAt+KPSjHeAwe9VK1NBoPpQZ8WEoFFHczB9SCyDDsaN9RodR4QqZAxTpiLJdU38xDYfyOO5Oj6PSn8Pht+g4r0kjJBLN+tug76XXioN/nzb6TQ17oloi+w3EFcEouGWzz7xtoVIzjAjnnNaKUrvnnbi7hFIBaQqT0Fykr+Ua9RdFwjKbXF7ZAoPg1/95nf5m5PfNsLtqL/bl6YNfoUraNLRmJ7zfaJ3jI65Fac8FD5R8j7k5DyXiE3mrWqwRwp0e02tO8zhFNvD/SgRyToPRjhJoFeLLISRCdOpx+W3fxiXJuNSDeGQdr4lNzVWYxmZSIgl+TgrnPL8BxGRDxspukKxYdr/kGPTZWYiE0ZJBbOry+J7WbyUbv9K7XSvTSjrw9UW5/6kZatT3cLHgd04ohjbg9ep10fb/plLaJ4RW0JqaL6+33lhIhaJm5Io4xzuhZhS6h62S/bSLJeSRI/cusS63D7BtyYclyP//0Z3ITKWqy90U+5EaRLknl6FVeptUHjgJacvi X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(7916004)(39860400002)(346002)(136003)(366004)(396003)(376002)(451199021)(7416002)(86362001)(8676002)(8936002)(44832011)(41300700001)(4744005)(66946007)(2906002)(66476007)(66556008)(4326008)(38100700002)(6916009)(33716001)(5660300002)(54906003)(6486002)(478600001)(316002)(83380400001)(6666004)(9686003)(6512007)(1076003)(186003)(6506007)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3DSmyK8JZAJrGU/rgoEn3CYOTkGOOWUSwDuIlsS9uJNcPBRvb6+ecwPMebQp?= =?us-ascii?Q?zfqO0eIAAxFS9/7+ZiemXRpxGWu3Lodndp/28kr4lHWW6G+3RyB7tUiDWJ9a?= =?us-ascii?Q?zjqjoJFcGXSK5rRj2fqSwG+bxwFxVIr5ZUD0HB+MvYZll8oJ54lOMrn6l54u?= =?us-ascii?Q?roUi9Z/wc0mwnQNlxE1BW6Is6ejiRpj/V+GWoCX+vCJTECMCziHzw6NdIbse?= =?us-ascii?Q?LDPSLtFb1Ekpy0rVd1Jn/Z3HGhDdYktx6k9MkR0ZT2yKXolNn4wuQQUjzGsO?= =?us-ascii?Q?LL9i972g02Q6CJHUnKRnV7Hmxc9rBC+lhY/gYhpjob+1Aw7l7dIVSJYZ6FZ+?= =?us-ascii?Q?tgzgQvKMx+JgRJJ/N7dQM724toBg7LhLJ7UaiN3x/UV3kwPDl3F/CgZvsku1?= =?us-ascii?Q?KcVFAynvvtif1HsFCxZDpSndfDsWWSQPYizArButDssgqRB27JIMGkoE1jTV?= =?us-ascii?Q?6A+uRtR/APtzFY571EFT6i0JaFqWuTNn5+OhBzrTpWzJOXGO8ZsWxZBaBuJS?= =?us-ascii?Q?A5TM+5L2KOPlhbFdqP3kcQqtGh+vETK55nTxzPW6pFJNEjf7pVLyiQ0dHQAq?= =?us-ascii?Q?DWEeOxrqIeilZ2xwK+AyULAs4iLpPnxGiExPWkKyY/QDcmWybolVsTz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cjz9tz0c8xshV7YCJRexPkLeZHNQ8pe?= =?us-ascii?Q?PsOKoepdn/4bqo3ggoNx07XzBiIJYZMTwxoLUqGp8tlerySbH1G6CE1TFGX6?= =?us-ascii?Q?ng=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d7b701b-f0f2-4718-6d2a-08db3b780167 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2023 17:04:41.0942 (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: 9ne9MxSvLhuS2ixu8DXqm2UPwK8IeU6/3qDIneM9SieAJCyJB8SzvlGkQB27o2TBwyqXtUGYvVFV48e5sgghNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9489 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 12, 2023 at 07:49:17PM +0300, Ido Schimmel wrote: > On Wed, Apr 12, 2023 at 07:24:07PM +0300, Vladimir Oltean wrote: > > I'll send v2 with BR_FDB_ADDED_BY_EXT_LEARN not prevented from being > > notified from switchdev. > > > > Unless you have any objection, I won't send v2 like this: > > > > if (test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags) && > > !test_bit(BR_FDB_STATIC, &fdb->flags) && > > !test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags)) > > return; > > > > but like this: > > > > /* Entries with just the BR_FDB_ADDED_BY_USER flag set were created > > * using 'bridge fdb add ... master dynamic' > > */ > > if (fdb->flags == BIT(BR_FDB_ADDED_BY_USER)) > > return; > > LGTM. Please copy me on v2 and I will run it through regression. Will > try to report results before tomorrow's PR. Sorry, I won't send the v2 early; I need to think more about this and I don't want to rush things. It's likely that the zero-day bug fix will miss this week's PR.