[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260208161228.GM154003@shredder>
Date: Sun, 8 Feb 2026 18:12:28 +0200
From: Ido Schimmel <idosch@...dia.com>
To: Linus Lüssing <linus.luessing@...3.blue>
Cc: bridge@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Nikolay Aleksandrov <razor@...ckwall.org>,
Andrew Lunn <andrew+netdev@...n.ch>,
Simon Horman <horms@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
Kuniyuki Iwashima <kuniyu@...gle.com>,
Stanislav Fomichev <sdf@...ichev.me>,
Xiao Liang <shaw.leon@...il.com>
Subject: Re: [PATCH net-next v2 13/14] net: bridge: mcast: use combined
active state in fast/data path
On Fri, Feb 06, 2026 at 03:52:19AM +0100, Linus Lüssing wrote:
> @@ -1081,6 +1101,20 @@ static bool br_ip6_multicast_querier_exists(struct net_bridge_mcast *brmctx)
> }
> #endif
>
> +static bool br_multicast_querier_exists(struct net_bridge_mcast *brmctx, int proto)
Nit: Can you change this to 'u16 proto'
> +{
> + switch (proto) {
> + case (ETH_P_IP):
And drop the parentheses?
> + return br_ip4_multicast_querier_exists(brmctx);
> +#if IS_ENABLED(CONFIG_IPV6)
> + case (ETH_P_IPV6):
> + return br_ip6_multicast_querier_exists(brmctx);
> +#endif
> + default:
> + return false;
> + }
> +}
Powered by blists - more mailing lists