From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8519FC61DA4 for ; Fri, 3 Feb 2023 16:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vOePijlrXxyq3+cy6Gf0zr9WxULYsKJlPcAf+z4wt9s=; b=ydDXzm8HxPNaxvC83s1k0ffW7D NJRtn+ReJbdU66Fo70CbEuejLpIFG1KHVMQRRrBCVphPxRFdV+sm/pMQKficlXIg83M7WD3xjfvCv yGitx1tTdTc8+yagQKPBLlzqgfc6VhJUTfBC0VzerGEsEFzrxpVCMPKOZo0nwQ4yNHwBVLpglykYn CkcJV7HhMhFjPTWSM/w+r33XLKULQD4nYm8WxlUsQfYbEFFhB4O6qwUTiGzFXl2m883vI1zCTP0Fn soF8f13GXiHcr2yc82zUGbl778Av7eKklXHLzYB0iyfOQ9doIni/6GWw/9rENHpSIw0oT0MdSLf2z KgGaxubA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNyv0-002us8-Pl; Fri, 03 Feb 2023 16:28:06 +0000 Received: from mailout-taastrup.gigahost.dk ([46.183.139.199]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNyup-002uma-8e; Fri, 03 Feb 2023 16:27:56 +0000 Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 21D0E188387C; Fri, 3 Feb 2023 16:27:44 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 0594C250007B; Fri, 3 Feb 2023 16:27:44 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id EA3F591201E4; Fri, 3 Feb 2023 16:27:43 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Fri, 03 Feb 2023 17:27:43 +0100 From: netdev@kapio-technology.com To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , =?UTF-8?Q?Cl=C3=A9m?= =?UTF-8?Q?ent_L=C3=A9ger?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Russell King , Christian Marangi , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , "moderated list:ETHERNET BRIDGE" Subject: Re: [PATCH net-next 1/5] net: bridge: add dynamic flag to switchdev notifier In-Reply-To: References: <20230130173429.3577450-1-netdev@kapio-technology.com> <20230130173429.3577450-2-netdev@kapio-technology.com> <766efaf94fcb6362c5ceb176ad7955f1@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: <4188a35c3c260d8ea2b5f8b2ac0ae6b2@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230203_082755_491909_60E33560 X-CRM114-Status: UNSURE ( 8.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On 2023-02-03 17:14, Ido Schimmel wrote: > > OK, so can't this hunk: > > ``` > if (fdb_info->is_dyn) > fdb_flags |= DSA_FDB_FLAG_DYNAMIC; > ``` > > Become: > > ``` > if (fdb_info->is_dyn && !fdb_info->added_by_user) > fdb_flags |= DSA_FDB_FLAG_DYNAMIC; > ``` > > ? > > Then there is no need to fold 'added_by_user' into 'is_dyn' in the > bridge driver. I *think* this is the change Vladimir asked you to do. I suppose you mean?: if (fdb_info->is_dyn && fdb_info->added_by_user) fdb_flags |= DSA_FDB_FLAG_DYNAMIC;