From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 365BC60D75 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3159760BEF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackwall-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=3YczR2Egl4ZFRyscdYYWi5wk2fHwMzSOUnVWfHdBreM=; b=XzCjQYL7pcKNpZS+XZ/jvaKcz044RvIp2Kqny5OT1idIVch+NIlfnHsadgKWYFDb0E LrNd0hKaoyAkJgnlUbgT753luKRo2WarLndU46VH401AIJex/4AHi+GjE2AERqIw4E67 KcTGvWm0Cb47y9tZiiVeDXe5aGt3zgsJdX1yvhdGB9sF/Z6qTtvJ64moVxFbEZ3rr5yl pikp+Km8ABi40dgWtLH8Rsk1foqkvANAJBLYdZG/VUu8A9htUuS+ZXPGuaLcw/QxhNIa TflL902OKXy2G0jqaGBSpTTwIag6f4IKoc6DsHiVXpu3AccPpZkYXLscSaqqcDhfEPOK 8xYw== Message-ID: <80c8a02f-95b9-8e96-b05c-016b43876c15@blackwall.org> Date: Sat, 27 Aug 2022 18:52:07 +0300 MIME-Version: 1.0 Content-Language: en-US References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-3-netdev@kapio-technology.com> From: Nikolay Aleksandrov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH v5 net-next 2/6] net: switchdev: add support for offloading of fdb locked flag List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ido Schimmel , Hans Schultz Cc: Andrew Lunn , Alexandre Belloni , Kurt Kanzenbach , Eric Dumazet , linux-kselftest@vger.kernel.org, Shuah Khan , Ivan Vecera , Florian Fainelli , Daniel Borkmann , bridge@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, Roopa Prabhu , kuba@kernel.org, Paolo Abeni , Vivien Didelot , Woojung Huh , Landen Chao , Jiri Pirko , Christian Marangi , Hauke Mehrtens , Sean Wang , DENG Qingfang , Claudiu Manoil , linux-mediatek@lists.infradead.org, Matthias Brugger , Yuwei Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Vladimir Oltean , davem@davemloft.net On 27/08/2022 18:46, Ido Schimmel wrote: > On Fri, Aug 26, 2022 at 01:45:34PM +0200, Hans Schultz wrote: >> diff --git a/include/net/switchdev.h b/include/net/switchdev.h >> index 7dcdc97c0bc3..437945179373 100644 >> --- a/include/net/switchdev.h >> +++ b/include/net/switchdev.h >> @@ -247,7 +247,10 @@ struct switchdev_notifier_fdb_info { >> const unsigned char *addr; >> u16 vid; >> u8 added_by_user:1, >> + sticky:1, > > If mv88e6xxx reports entries with 'is_local=1, locked=1, blackhole=1', > then the 'sticky' bit can be removed for now (we will need it some day > to support sticky entries notified from the bridge). This takes care of > the discrepancy Nik mentioned here: > > https://lore.kernel.org/netdev/d1de0337-ae16-7dca-b212-1a4e85129c31@blackwall.org/ > +1 >> is_local:1, >> + locked:1, >> + blackhole:1, >> offloaded:1; >> };