From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=F5SJAe2UiUjFV9fYjeVsnnxEIaa42rdLYEILkbvUZeQ=; b=bJiSnl0C+kDQnzduB0+4ZBVeclsximk3wH3kFDKEsVhwKyuKKH445EoyYcMUmyh2Dr 1NV/hG8UvJGNGY3LV6o3tq0RoownLEylU/HY+5lTz+58lugJdWeexD/81HFJQs+kHHcb ZO09jiQGlj9gDe6RkBLCzoIhGxvdVHSjRZntGFwjjdFuNSBNM4Kk6LXR+a1HhrBcIosz HBJsl76m8E/tVZZhVp5We8zkX7RSJpOnLcURwNUW3hyXbK78UR/DD1uyiRIk4xlDNcb2 tLlvgFFAyCYfGozmxn6w4hu1aK8ncXWds3i40PxGEwNuYYVSIER/18Qeiz4oqnLNmESp SJRQ== From: Joachim Wiberg In-Reply-To: <5d597756-2fe1-e7cc-9ef3-c0323e2274f2@blackwall.org> References: <20220411133837.318876-1-troglobit@gmail.com> <20220411133837.318876-9-troglobit@gmail.com> <87v8ve9ppr.fsf@gmail.com> <5d597756-2fe1-e7cc-9ef3-c0323e2274f2@blackwall.org> Date: Wed, 13 Apr 2022 10:51:14 +0200 Message-ID: <87pmll9xj1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Bridge] [PATCH RFC net-next 08/13] net: bridge: avoid classifying unknown multicast as mrouters_only List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikolay Aleksandrov , Roopa Prabhu Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, Vladimir Oltean , Jakub Kicinski , "David S . Miller" , Tobias Waldekranz On Tue, Apr 12, 2022 at 20:37, Nikolay Aleksandrov wrote: > On 12/04/2022 20:27, Joachim Wiberg wrote: >> [snip] >> From this I'd like to argue that our current behavior in the bridge is >> wrong. To me it's clear that, since we have a confiugration option, we >> should forward unknown IP multicast to all MCAST_FLOOD ports (as well as >> the router ports). > Definitely not wrong. In fact: > "Switches that do not forward unregistered packets to all ports must > include a configuration option to force the flooding of unregistered > packets on specified ports. [..]" > is already implemented because the admin can mark any port as a router and > enable flooding to it. Hmm, I understand your point (here and below), and won't drive this point further. Instead I'll pick up on what you said in your first reply ... (below, last) Btw, thank you for taking the time to reply and explain your standpoint, really helps my understanding of how we can develop the bridge further, without breaking userspace! :) >> [1]: https://www.rfc-editor.org/rfc/rfc4541.html#section-2.1.2 > RFC4541 is only recommending, it's not a mandatory behaviour. This > default has been placed for a very long time and a lot of users and > tests take it into consideration. Noted. > We cannot break such assumptions and start suddenly flooding packets, > but we can leave it up to the admin or distribution/network software > to configure it as default. So, if I add a bridge flag, default off as you mentioned out earlier, which changes the default behavior of MCAST_FLOOD, then you'd be OK with that? Something cheeky like this perhaps: if (!ipv4_is_local_multicast(ip_hdr(skb)->daddr)) BR_INPUT_SKB_CB(skb)->mrouters_only = !br_opt_get(br, BROPT_MCAST_FLOOD_RFC4541); Best regards /Joachim