From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hSFH235x9cvayA+gcxjI5JkciUVbvTnKLm9tJ6qXx/Q=; b=RoaJVcMtQo9mU3HFtbwl3tu+zHqk4lat8Xqkut7zuNzcbagfiONeeIAqKlkBzYQS2P 18U2+lo/pdeU2HKByFWYxKVfRvpDcyIh1rUB3K+wrJR+qaXeY3gzWtYqVtcozb+iR1Re TtBhKPhZZhn0Oph9KcsjhFmEcGAM24DIcxJO+DPBaM0qws+pFRwXqlT/bQB/o+MAlJ3S Wl8O/uBjAbOrEv4n/PK+au2IHH5P1wiVq9ulRV+xGIQe+tq430xyAcZynxzGph7ZRs+b GtXeDm+uyYcHrEpPVXsfcTTxYyVArE7STev5Lit5n4knIg1igu4PCIhL3wf5tb037EnT g3/Q== Date: Wed, 20 Oct 2021 08:19:37 -0700 From: Stephen Hemminger Message-ID: <20211020081937.70059049@hermes.local> In-Reply-To: References: <20211018082612.625417-1-liuhangbin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH net] net: bridge: mcast: Do not allow users to set IGMP counter/timer to zero List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hangbin Liu Cc: Nikolay Aleksandrov , bridge@lists.linux-foundation.org, Nikolay Aleksandrov , roopa@nvidia.com, kuba@kernel.org, davem@davemloft.net On Wed, 20 Oct 2021 09:02:01 +0800 Hangbin Liu wrote: > On Tue, Oct 19, 2021 at 07:09:42PM +0300, Nikolay Aleksandrov wrote: > > > I started this patch when I saw there is not limit for setting > > > multicast_membership_interval to 0, which will cause bridge remove the > > > mdb directly after adding. Do you think this is a problem. > > > > > > And what about others? I don't think there is a meaning to set other intervals > > > to 0. > > > > > > > The problem is not if there is meaning, we cannot start restricting option values now after > > they've become uapi (and have been for a very long time) because we can break user-space even > > though chances are pretty low. I don't think this patch is acceptable, I commented on the other > > patch issues but they don't matter because of this. > > OK, I got your mean, we should not restrict the configurations based on whether > there is a meaning. > > Thanks > Hangbin Maybe the bridge command could enforce that the value set are sane relative to the RFC? We already fixup some things in iproute2 utilities to workaround places where changing defaults in kernel would break userspace.