Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp899567rwi; Thu, 20 Oct 2022 06:34:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7TMvr/SLVq3oYsS2tWdVHZxEJLaUFHlEWTpQeISxkYS6lSkwdX7qCPSpWn3iX9QjekjeEw X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr11212020ejb.725.1666272878139; Thu, 20 Oct 2022 06:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666272878; cv=none; d=google.com; s=arc-20160816; b=BMVgtB4BxRkaq7LERXHhydKxekvPD3HFVjvoOid4jCaA4gFr85iPNm3/vpMl80w74i F3z5PggRJ3fvXVlSjNNaxVv/pZuKBD09bYPLWQXsxTnY3GD1+wRKlr7C/W1qm8LCoYbo ag+DrLhUH+iesf5hOWlA8lNFAn2rou1QEY1f0fEd2K1LzGsay6DsmfaoD2toyD0+/Gva 95My52J2LT1B1zcdrZJimSuGO+1EYztqvJMkXaIuR5Ok+vQIzV5e4zuT5crN6FLooPHB dfeKXLikSmYBEyxvPHfdD7cHB4h5ZtOvyOnRYPGH5TCUk4AcaqqFtH2P/4XQx3N7rEmk iOlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fdvrcAZE1EPFKfjlz9uiWm6tLrgoi3e11AtXEZMwK1w=; b=Em6VCTnXOoSOs5/5XVcDZuR9dTAYv+o9/UibLdKoDK9Xy4YZF1Ek4TC172XE+SIx+R pBBY4BdgfTmzP6PS7qk+Ekkb1gBBai/hslP5hOArQh9ctsuzXZCbk6LTQhydQavdlrAj dcVs+kpoTwWheVYZpVb8nNIAnANunkmqCIkPBMhqxyrsW3Xut3ZYzJ8rA3iEUr266sUN Lt/eWHg1dgBqpCczfuqDwS44FXnUzCjddejX99C7NUqMsc/UWaqb2lEXGKyu1EZA+ksn e9W3uvtnSViZ2x5G3UBWDbgzE74CvvelhAafQAGFRH9jp7lYA+u82oerNthlqAMXHTdm loUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IWGLeBFG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz5-20020a1709072ce500b007919d2f6517si7491277ejc.737.2022.10.20.06.34.03; Thu, 20 Oct 2022 06:34:38 -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=@gmail.com header.s=20210112 header.b=IWGLeBFG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbiJTMz7 (ORCPT + 99 others); Thu, 20 Oct 2022 08:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiJTMz5 (ORCPT ); Thu, 20 Oct 2022 08:55:57 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C5006A50D; Thu, 20 Oct 2022 05:55:55 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id t16so10511290edd.2; Thu, 20 Oct 2022 05:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fdvrcAZE1EPFKfjlz9uiWm6tLrgoi3e11AtXEZMwK1w=; b=IWGLeBFGsZqMWZu8NBa/5dv5ja5/cw8FaXj7wp6edzJDwcLJj6NIDrLC+M4WHRna9D W/HVQMcSF6esNg0rdN16No22xc3RXNXtqC+d9MIwWWH6OraR3CEpdZlZkXd0vUfIPJmc r76gdPx5puJhBChIud7soYMaAJ0xDETQQUIVLRMeRctA0r9t2d7V5VzVBTljkqjwVwzN xk+sjzPjB9NuQXcw43TV0QX8WHVLExkPruQp0pob9BJFWnTMsxqoV6Lp9yXB/rKr+P2X 2pqwPSREhVfXotOpf0+Nbs64TnnBegLM9Dc0G+er8ZPI55mGP3UBqvZXxq5cUyuqaNJQ NTRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fdvrcAZE1EPFKfjlz9uiWm6tLrgoi3e11AtXEZMwK1w=; b=StQg2wVy465CUTjClT89XxsSzDhKW1vdRjvGCYlpFno/jiByDRdAmUrNTSjS8vEWbH ONJO/idNxFJXYmfSr96LHo08X087ryPcvvOBheq61ZMan3c+TWHcLa8EA81Oqf1j8Svc cYENtNJTwMH/N6adwxIy8nLzrYG/+8wsdhZtQ+w5iOkzajSztdXyoN8w6qLuVNhTvetK 0AxJl80Ty+FtYryOS6Oo7l/RqAxvhNgF/y0T85zpc9R4ZwRkDn1oVz335m6jPNn2XNHz cduOzmH1re8q3p8h98MnNFkq0AabbvgUaJj7Cb4cgV/X62ym/pmbn6XnEzAyddnoL0y8 /RIw== X-Gm-Message-State: ACrzQf31juS5kIqQxSBZt/ft9UIfRJyu+2mRg9JxwjIJ7zeX2mniaIla cm261xRKACgSjsCX3cw7XqU= X-Received: by 2002:a05:6402:1393:b0:457:ea9e:ba20 with SMTP id b19-20020a056402139300b00457ea9eba20mr12266779edv.109.1666270553914; Thu, 20 Oct 2022 05:55:53 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id q5-20020aa7d445000000b0044bfdbd8a33sm11955944edr.88.2022.10.20.05.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 05:55:53 -0700 (PDT) Date: Thu, 20 Oct 2022 15:55:49 +0300 From: Vladimir Oltean To: "Hans J. Schultz" Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Ido Schimmel , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v8 net-next 03/12] net: bridge: enable bridge to install locked fdb entries from drivers Message-ID: <20221020125549.v6kls2lk7etvay7c@skbuf> References: <20221018165619.134535-1-netdev@kapio-technology.com> <20221018165619.134535-4-netdev@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221018165619.134535-4-netdev@kapio-technology.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Tue, Oct 18, 2022 at 06:56:10PM +0200, Hans J. Schultz wrote: > diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c > index 8f3d76c751dd..c6b938c01a74 100644 > --- a/net/bridge/br_switchdev.c > +++ b/net/bridge/br_switchdev.c > @@ -136,6 +136,7 @@ static void br_switchdev_fdb_populate(struct net_bridge *br, > item->added_by_user = test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags); > item->offloaded = test_bit(BR_FDB_OFFLOADED, &fdb->flags); > item->is_local = test_bit(BR_FDB_LOCAL, &fdb->flags); > + item->locked = test_bit(BR_FDB_LOCKED, &fdb->flags); Shouldn't this be set to 0 here, since it is the bridge->driver direction? > item->info.dev = (!p || item->is_local) ? br->dev : p->dev; > item->info.ctx = ctx; > } > -- > 2.34.1 >