Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4228115rba; Tue, 2 Apr 2024 10:44:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzAB3wF9k3Iq+P4xwTb4vP1khT3kCSc9zBLGnmqLtCq2G2bD4f68VguzFhGZ9Yv+yjOe33HE7Zc+2D4kSWg/fToXaSEy6yyc59ENrmtw== X-Google-Smtp-Source: AGHT+IFaPEef+qUaeYho9d1GQMFCzE+uYzJSsjHbNY2p/mr1crylCivhQ/kiBXyNdUvzQVuxPpnV X-Received: by 2002:a17:906:6dc4:b0:a4e:5403:51c9 with SMTP id j4-20020a1709066dc400b00a4e540351c9mr5848352ejt.67.1712079847165; Tue, 02 Apr 2024 10:44:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712079847; cv=pass; d=google.com; s=arc-20160816; b=JoT+A34JcTRJEGUa6Yabaylikf8R6s1+cg3Ho4dvRdEHBc5G8IQ27QLeVi+FE+0sdr aM0J6uQGfMF4VmvuBgD2bReBHBXmYanjqdCWFIfpk+I6Vi2aGek3Gp7GYmAylTWFS5vb iCN6O/94Z4h5SLAoZBxpIULRu8RBB/7QkcP8SV3+937ahcn9b1NQEMW0baFnLdYt0t7e wfu1upuVeOsBnaKN92kP5WF2IzDskXJgB25keyTPlIpTA/Yq6Jmnk3MbH9WlkSysLUSV 1FvmdW59XiAJh/Owu5ApMOUtbgNJTFSU96hHBp34VcSHqYOEOn6lJ7yTpawjlnvoc4Xr TqNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=q1U6HAKXhhezsA9SEW8MoU/AGoBW+xsxrufA0vT6Ds4=; fh=B/K38fzusSVsFGBnS+VRtSa9bt5I/05UplgrCQkaQnQ=; b=ueDRjI91dsoDM/saypHvn4qXuODN4vwOmFFRcnJ6vtbGvjd8CJTIEI2OX5hK+8T2oJ Q4QfoDczBvsIzJZY5amadOmXIVPdISxC6nUfqbLD33r/dW3yVMp3/Fa/WyE3O/CSsgpy rUMBoAwjJKD+/VsXLGJX3AG/QnEJ0iV6Q8zRHmlrnW+DdtM/WlrG3eHaKMpADF3eO+8r ngQdmPM13nnVzrZSQaVVWiu3Skn/mc8TVSgTDN9WJKO8wED5cqI+zHLraavY7+MqT7I/ 1TQHJBvxMjr2Vya+Rl5EEtn12VTwMAZy9YAwdDnUhtoIB6/2SwRFfvDmV6HA3aLLT0gU zhvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FeKkoUAh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bk17-20020a170906b0d100b00a46be1b511csi5619980ejb.397.2024.04.02.10.44.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FeKkoUAh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E76371F21D9B for ; Tue, 2 Apr 2024 17:44:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85F8815AAB3; Tue, 2 Apr 2024 17:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FeKkoUAh" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F570157E74; Tue, 2 Apr 2024 17:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079836; cv=none; b=m6yifVd15DH5voW1Y2YzIJNOIRe2w7XQruyKwfCQZ21k3Wu1ykhq6eCDDxQM1tXvq4Wizw9NT7IVQTavBw7EA6+VzXqFBRr4yw4supQGG/1kBiMcMIkiAd4hSAmGWy9qomX8Onro21ThEoAvlT8EA+WCQWhIof11+mjA8uLbpcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079836; c=relaxed/simple; bh=9uFKBEZ+jTSZSHC4IJ8ZjKJhk+5U54ScceL4P119hY4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WAdP20zVWkxclSipFvQI4+Dffvenxo9ghh8ww72iaJiQl6W3ZmMosgbTex/f8Kh7I0TbCh2WtzhU+8bpqIzyzN6BjmG6JjL4rl3CwBW5E+u5xp764vFAZhRYQUy/ouRfWYSnq28plAFtDQJtymlS7YifALi6LvO5umUX9FBtx+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FeKkoUAh; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a4e8904bd71so128904566b.1; Tue, 02 Apr 2024 10:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712079833; x=1712684633; darn=vger.kernel.org; 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=q1U6HAKXhhezsA9SEW8MoU/AGoBW+xsxrufA0vT6Ds4=; b=FeKkoUAhP8efx+DgeKRR5cDO+J4gSI/IJFO+5RxPhXgOz6PbO+CVVviexfYeTin64O /ajJ5x1kFXLXj2e0RddTHpv6USb0AEVvw03jIzfvL3mdMthKi94IUBiuxV1n5uqsdY5B EJshDyZ5rKdlc/CqWKVZ/tuErssVqr5YjMNkrT+HNWK6oVd99om9pB47uHRhAnqTUN7y 7cdAko25r2w5sm+jJzSsMIyFHSkfdrUxGAf+PGQtsq51lpi4x7RGYTSYOL0VaDotvha4 hJdKWnrtO982o1LaHWsOg5ZpKWcTVm1FFwv8WHQf/UEIWvgwXjBjQYkMGU3A17hoAebT Bavw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712079833; x=1712684633; 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=q1U6HAKXhhezsA9SEW8MoU/AGoBW+xsxrufA0vT6Ds4=; b=pGf6PN34m4SuF1hI8+W4kLfykd4AAmi7AlE7DUdqifuwPBQ3e/lxqqr68TwddS3j62 2WKNWexIIu+tgc9UkryyzLX5W9C/0xLLHSi8SDyAbMQBciEPnSdTnO/UBEjpsHQy/NW6 4+H3Ap0uz95PzGByAMTHSuKvi8BBBzEFOhGmOHOFjw0uW4kwVF27yw+VqsfMA4zidHqN TyM81QaEQibh4F2VCBs8hAuB6SaJa9te13E2fU+h9zQkze7lmiGUQbGXN15rcqLUROkZ 8gQLQNWmcSpAHyK0KMe7wIIK+PADKu6gW04PjR+zT1bDj5ORIjip4foAVFc3nEr62Mhb ld7g== X-Forwarded-Encrypted: i=1; AJvYcCXalBsL6oLGKWYp0NlWBV9VJZKYy+SC0VFNAoLHTQpap8PDa4HTtHd+PTD8MnA4jV+GyEJe0i2NMQWZrYiImy8blnmG5V/7dYI+BgIfMar0FEICqkGazxpVItdpWjftvaemQ5TE X-Gm-Message-State: AOJu0YzmdCw4pf0VMKuhTdRPW4rAVUJhzGMW8ZNWkeDBGqDSW4uQq+DM UGwmcvW7bFSYibwQR9wrhV2gJ/sFCYxO5xEZNrxhjfI+JdvneFbQ X-Received: by 2002:a17:907:ea8:b0:a4e:51aa:b409 with SMTP id ho40-20020a1709070ea800b00a4e51aab409mr7562662ejc.59.1712079833049; Tue, 02 Apr 2024 10:43:53 -0700 (PDT) Received: from skbuf ([2a02:2f04:d700:2000::b2c]) by smtp.gmail.com with ESMTPSA id gl20-20020a170906e0d400b00a46c39e6a47sm6832789ejb.148.2024.04.02.10.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:43:51 -0700 (PDT) Date: Tue, 2 Apr 2024 20:43:48 +0300 From: Vladimir Oltean To: Nikolay Aleksandrov Cc: Joseph Huang , netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Roopa Prabhu , Linus =?utf-8?Q?L=C3=BCssing?= , linux-kernel@vger.kernel.org, bridge@lists.linux.dev Subject: Re: [PATCH RFC net-next 00/10] MC Flood disable and snooping Message-ID: <20240402174348.wosc37adyub5o7xu@skbuf> References: <20240402001137.2980589-1-Joseph.Huang@garmin.com> <7fc8264a-a383-4682-a144-8d91fe3971d9@blackwall.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7fc8264a-a383-4682-a144-8d91fe3971d9@blackwall.org> Hi Nikolai, On Tue, Apr 02, 2024 at 12:28:38PM +0300, Nikolay Aleksandrov wrote: > For the bridge patches: > Nacked-by: Nikolay Aleksandrov > > You cannot break the multicast flood flag to add support for a custom > use-case. This is unacceptable. The current bridge behaviour is correct > your patch 02 doesn't fix anything, you should configure the bridge > properly to avoid all those problems, not break protocols. > > Your special use case can easily be solved by a user-space helper or > eBPF and nftables. You can set the mcast flood flag and bypass the > bridge for these packets. I basically said the same in 2021, if this is > going to be in the bridge it should be hidden behind an option that is > default off. But in my opinion adding an option to solve such special > cases is undesirable, they can be easily solved with what's currently > available. I appreciate your time is limited, but could you please translate your suggestion, and detail your proposed alternative a bit, for those of us who are not very familiar with IP multicast snooping? Bypass the bridge for which packets? General IGMP/MLD queries? Wouldn't that break snooping? And then do what with the packets, forward them in another software layer than the bridge? I also don't quite understand the suggestion of turning on mcast flooding: isn't Joseph saying that he wants it off for the unregistered multicast data traffic?