Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1716551pxx; Fri, 30 Oct 2020 17:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzstlsikvs8v7r5mhcTCuIZAPGUDWO1AGmkMmQPHASpMuH7ZOtetehOrH4Nf7kNa7wBUErL X-Received: by 2002:a17:906:134e:: with SMTP id x14mr5058276ejb.173.1604105948055; Fri, 30 Oct 2020 17:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604105948; cv=none; d=google.com; s=arc-20160816; b=d7Q+gmkQnBYgGDon3tm1NyvdctbzlyTmldeyt7/+glzwMqQRmI4f8OuS25/mV/FxkM LszXBHs6fEx19rcB5/wdygNAiTNm8DS5br3wtJB6HGzFKliThNzRiFaRdZp+P11JpbfP VJzwI/QQWCNdVSa2ldRhqvIhKIdKmnkSso+fOB3r1T4p+NhL/OyI9rr5RjVpap3JDrd9 Qrc9G57r/l8vZoT6FOBE3qSAdZIwfO3R1w7i/SNEFZW2ULr069/0IqeESv86fhw3CIG6 S0ZXZfNYI2VQvD8i9REPewclYZ2Xr0ip3t2fnQQIQJocIv3g7e2VWEGN4GdzWxuOCun1 MU9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JJzgitSCLcSnkKoyK/m6UZg9OVi+Db7yqo5LRL3sbKg=; b=pikCxEVuAovfrI3uoHVFjoUn1UO5mkW1H3SJxhy2+cBQNQdKKq6G426lucp42+fRHh zuum1mqji7pzwLItrLl5MmevNoz1401S1rOXQlNpbt/oucfeLUii5iBU3T+McZiwYgy0 YbbKz15VmGAwzejZ7SGOi69zdBwU13PHl/5lBZhFg11mSPoM4E3vrUo6OpXdbif55i7Q dGlAjelUZSyoJlZISyB83igZ3WLTrmKHd1GBNYatsi3GoTC18vjERT/EBNHeOnCKw7Cn YThr2e1JsXkvsAXFgwgnR3k8Hr0J7QwM6q0St6ImGuZdVo95PdAcp22jUs78vU6XBXJU txpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yq2MLhjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si699424edn.398.2020.10.30.17.58.43; Fri, 30 Oct 2020 17:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yq2MLhjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725949AbgJaA5O (ORCPT + 99 others); Fri, 30 Oct 2020 20:57:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:52006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJaA5O (ORCPT ); Fri, 30 Oct 2020 20:57:14 -0400 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40B21206CB; Sat, 31 Oct 2020 00:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604105833; bh=986U1WT2eTEVzODFd0gdq4cGAXDe6PZrM3EnpbUmszc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Yq2MLhjsts1DAWWm3hf2WQg+dUHPEb5Dn8Oijl9B5NkTlRoG/GeamZW9uF+Gl4GnT x8sJUCxB9lztjXA0DUZcLQvEV9YY7WGqIdetGcAHwdGAo5AlRAG3c0egovRSbDe6St AoRf5XJ1bmPQ8zj0JIjIvxAXNdf0mA+65iMkve8g= Date: Fri, 30 Oct 2020 17:57:12 -0700 From: Jakub Kicinski To: Vladimir Oltean Cc: Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" , bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, jiri@mellanox.com, idosch@idosch.org Subject: Re: [PATCH v4 net-next] net: bridge: mcast: add support for raw L2 multicast groups Message-ID: <20201030175712.6431ac84@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201028233831.610076-1-vladimir.oltean@nxp.com> References: <20201028233831.610076-1-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Oct 2020 01:38:31 +0200 Vladimir Oltean wrote: > From: Nikolay Aleksandrov > > Extend the bridge multicast control and data path to configure routes > for L2 (non-IP) multicast groups. > > The uapi struct br_mdb_entry union u is extended with another variant, > mac_addr, which does not change the structure size, and which is valid > when the proto field is zero. > > To be compatible with the forwarding code that is already in place, > which acts as an IGMP/MLD snooping bridge with querier capabilities, we > need to declare that for L2 MDB entries (for which there exists no such > thing as IGMP/MLD snooping/querying), that there is always a querier. > Otherwise, these entries would be flooded to all bridge ports and not > just to those that are members of the L2 multicast group. > > Needless to say, only permanent L2 multicast groups can be installed on > a bridge port. > > Signed-off-by: Nikolay Aleksandrov > Signed-off-by: Vladimir Oltean Applied, thanks!