Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2038571lqz; Tue, 2 Apr 2024 05:45:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpNnNuK3cN8OAiapzb1Q4vGw5U30TBJtRwCoqsMRcuHnjvLi21U2lgCxuOt97INGJbX6JVvVD5bWa6vwWq000xvJ5rg04mNjxE9UaLAw== X-Google-Smtp-Source: AGHT+IFu8Gqnl2BEVgWzLfagLHi145YEXNA/o9ELDiNhJV8m6nO40zhkJ2f5tWZQJtrZkiKf/8NY X-Received: by 2002:a50:d6cb:0:b0:56d:c711:1538 with SMTP id l11-20020a50d6cb000000b0056dc7111538mr6998426edj.18.1712061913983; Tue, 02 Apr 2024 05:45:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712061913; cv=pass; d=google.com; s=arc-20160816; b=aAXLK/S1Z3H/TyllKN+Doatia9dByw/cCB7Xeaw+AH4NN5RtEIKL686DQ/WVi6QinO rIuBy0uUELcrSLo2EnOm1WzZ6yd7TLTdO1NlV+zddWKAX8J3kRNNmDq3hPlG6mX234Zk onngknw6yzJJs0J1uEX6vXUydU/QCx3z/2boTMhxecGaBPPboI6sN/2urAo7mRsaMcam rGHnyxawkLvVfMw9iTPHE1O6GyLESLfynNVNIB43yhG0MF+U6ml7V54LkKZgsIHw7FBR QZ+ZtR2GxqKTH96P5HtOL6pJpD9vbJS58ulo3VKljSVvANAC1OuJvnqt13nMqOABOJm+ ORlg== 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=L4Tuu8ZWoWyYde4nc1r0Y5vT8GQqfazueKk7eTauMNw=; fh=PTpeXVaDFDdpcre906hAStvC/2jQVGIBLhlotEBvZzY=; b=O/c3vvyE4ymp/OVM8jTzbBZrEVZxf3own+7TqUToVXIa69z75RtIoYB5VabzQzy24i fEm5HS4k5xs3mxeTqmkuxiQtlj2SHzCb08469fiuvio9NQWIaVXftkLqb4NFDTNdmQ5m cQVyWNWekyjjSEuLU7mQ/ZO2Inea8egSRy1F8acrHRaJkohH7klZvhEpkbVq0xMTKQDL mEiV0CSN6iXGTz+UMGoE5Rk3HVih8ZEL4UFboP1Zb0LItzHvb5AbdPGRk2/Y8tpLrFxb r1yElZLISsHM9+mPj27aKmtGhnICgO1fx8AonC1RfvPV/124rSrgKpSEtexy5nnhQbj+ 8AtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OJdKj1HK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-127964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z11-20020a05640240cb00b0056b9026f2d2si5843728edb.431.2024.04.02.05.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OJdKj1HK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-127964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ACE871F24BA0 for ; Tue, 2 Apr 2024 12:45:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B08FC83CC8; Tue, 2 Apr 2024 12:43:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="OJdKj1HK" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C84A383CAE; Tue, 2 Apr 2024 12:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061816; cv=none; b=kBypFGljyevGnu+XgKYBHAGWfudQdRGr9UXLO570eaW+hnfVx2U1NGYcqKeTGlyYA8L2hTzEIs57XGuqnCb2HpPSfKxZDbMO3C0j5A8DRV1JtMsTGDdzdUFbYrFs5rVyNiPgp6GU57D6gCG3i3xA30z0UuSSCDrdgEP+dbPBw+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061816; c=relaxed/simple; bh=VivqYiAwv696fYdSTkay9yA82RmxUJhfYOOKNR/4Gpo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oFvngTrpqUbYTyhtNhcNjeoycnWap/imHVT7kEsBdW3VpZLLDXEoWfI0F4D1sMKVqW2ClmgBqWIT67dsrLiBmL197IksJ5H1x6GpqnYvTLs+1QJrqUKMmGqV1DbNTbtRAA9krH+6t2OyGt1FN95jGftipcwhZwXRgHNNm3AgYMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=OJdKj1HK; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=L4Tuu8ZWoWyYde4nc1r0Y5vT8GQqfazueKk7eTauMNw=; b=OJdKj1HK2b+4ih9vRCqOLZN9/j gWWsJWKEDHg0zfAMlDQJLb7clmLVLoGKkBhq9CPauel69cSaAls5eLpquO7KdsaUxnTwu8NKM3A2c +1fpdbMMWfxl4hV2pk70614bEmt2Cvj0pDd6ZqyylkYQ6Xm+OC9Jcon18MP8IESv2JNQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rrdTy-00BwGD-LJ; Tue, 02 Apr 2024 14:43:18 +0200 Date: Tue, 2 Apr 2024 14:43:18 +0200 From: Andrew Lunn To: Joseph Huang Cc: netdev@vger.kernel.org, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Roopa Prabhu , Nikolay Aleksandrov , Linus =?iso-8859-1?Q?L=FCssing?= , linux-kernel@vger.kernel.org, bridge@lists.linux.dev Subject: Re: [PATCH RFC net-next 00/10] MC Flood disable and snooping Message-ID: References: <20240402001137.2980589-1-Joseph.Huang@garmin.com> 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: <20240402001137.2980589-1-Joseph.Huang@garmin.com> On Mon, Apr 01, 2024 at 08:10:59PM -0400, Joseph Huang wrote: > There is a use case where one would like to enable multicast snooping > on a bridge but disable multicast flooding on all bridge ports so that > registered multicast traffic will only reach the intended recipients and > unregistered multicast traffic will be dropped. However, with existing > bridge ports' mcast_flood flag implementation, it doesn't work as desired. > > This patchset aims to make multicast snooping work even when multicast > flooding is disabled on the bridge ports, without changing the semantic of > the mcast_flood flag too much. Patches 1 to 4 attempt to address this issue. > > Also, in a network where more than one multicast snooping capable bridges > are interconnected without multicast routers being present, multicast > snooping fails if: > > 1. The source is not directly attached to the Querier > 2. The listener is beyond the mrouter port of the bridge where the > source is directly attached > 3. A hardware offloading switch is involved I've not studied the details here, but that last point makes me think the offload driver is broken. There should not be any difference between software bridging and hardware bridging. The whole idea is that you take what Linux can do in software and accelerate it by offloading to hardware. Doing acceleration should not change the behaviour. > The patches were developed against 5.15, and forward-ported to 6.8. > Tests were done on a Pi 4B + Marvell 6393X Eval board with a single > switch chip with no VLAN. So what is the mv88e6xxx driver doing wrong? Andrew