Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4833472ybi; Tue, 30 Jul 2019 08:57:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyET9HebyyKryY2okpZmIzXxOiOmqBoYoSpDpYRD7jRUolTZcaPtF7mLTDKZDaSRQ0QR4IT X-Received: by 2002:a17:902:d892:: with SMTP id b18mr108495122plz.165.1564502236441; Tue, 30 Jul 2019 08:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564502236; cv=none; d=google.com; s=arc-20160816; b=GC8K+MLVjeZA+qt/OLaZTw+hCLmgHUJ2trfwTh6WIij5dicB1P0fFUwBIuivIMnnUW nQJT1HQVIpzi1RbmJODWu/hURcFOS7PTiDpCV9rvhmsAehrgYvoElBeVxPado6BD8S5y dPcLmIQWvmD9xJxQhHK9bX9bL4UQZGFJtYl0k1MHyoS7yWQzy6NQCzM+VVGTt/U7heeJ h3z27skxoxV7Ad9GfP+2DY+spPjG8dFLXAg215p0g0rQAUApawF4j7I9fOm5ejsM8eMw YvgkP4d4wboR4Iw7VufKnN4rWQR8dueGbvRNTHW7ZGk1POa34Idr6glVrO4CUkzM+PnS VUvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr; bh=6j1IPbdXS7emxh1ejQz69zqEA/EvWHM49VPkRyN4pzE=; b=rHHopIPGi0IdsRWqLYsqBlgt7IrVRbLPFJrAmYI3AEZE92Bn3Cf9z9pYml3KsgVhVv YMRezCMUcER+mjhqUa65X+w5tTbFbGU9nZlT+6Hg4np5cNzTFYcoqPG3XCTwnunPoOgl Ixq9xp+KB3YlTPwTI2H0NxJC0wbqz8yGbDEe6dbFDH6PM4CP3msNTVK+TRSFT7vd37jq L1CzehC4nGdF8QmNS6CzZwl0IRna/WN0GRIkcey5NYp7TOcr9tikuJ2b2hJacls6PoQW dk6Q4QOfE78gvExYx3xH2qZTK90K2gBYh+LdZkLJs66jjTrYKSEE4x/bu96iQijGpwFZ lj1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si29611087pln.70.2019.07.30.08.57.01; Tue, 30 Jul 2019 08:57:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729860AbfG3Mep (ORCPT + 99 others); Tue, 30 Jul 2019 08:34:45 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:9746 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfG3Meo (ORCPT ); Tue, 30 Jul 2019 08:34:44 -0400 Received-SPF: Pass (esa3.microchip.iphmx.com: domain of Allan.Nielsen@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="Allan.Nielsen@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa3.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa3.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Allan.Nielsen@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: TSh6xGslQ9l146S4CGMt2voFWYTBMZFjzfO0F+tyOSvlW8IqkZu39CbH8BeW2uVOwa8FqpNu2U GOe+4WH1ohE0A3/Wo0vQNf0ORGdz/va7Ngy2+hN4JR6FKah3xwWFw2sR0Dz4OepiY78jqH0PLX csxXCYV3So2uWZWAELCBc0g7zpdKKF/K8VVI7Kb+kTQLvXdBFG0JRVuA2k2HEY9SnV7evaW2B9 53ygqY+n+2UhcHUL2wc6ItKg2n03Kgy5DSg1ebkjzhfHJ94PoBxXtFbew9FwgIHHNhnijEHLqG emA= X-IronPort-AV: E=Sophos;i="5.64,326,1559545200"; d="scan'208";a="43277834" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Jul 2019 05:34:43 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 30 Jul 2019 05:19:51 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 30 Jul 2019 05:19:51 -0700 Date: Tue, 30 Jul 2019 14:19:51 +0200 From: "Allan W. Nielsen" To: Ido Schimmel CC: Nikolay Aleksandrov , Horatiu Vultur , , , , , Subject: Re: [PATCH] net: bridge: Allow bridge to joing multicast groups Message-ID: <20190730121950.pyxtu5k4qphmshy4@lx-anielsen.microsemi.net> References: <20190729131420.tqukz55tz26jkg73@lx-anielsen.microsemi.net> <3cc69103-d194-2eca-e7dd-e2fa6a730223@cumulusnetworks.com> <20190729135205.oiuthcyesal4b4ct@lx-anielsen.microsemi.net> <20190729143508.tcyebbvleppa242d@lx-anielsen.microsemi.net> <20190729175136.GA28572@splinter> <20190730062721.p4vrxo5sxbtulkrx@lx-anielsen.microsemi.net> <20190730070626.GA508@splinter> <20190730083027.biuzy7h5dbq7pik3@lx-anielsen.microsemi.net> <20190730100416.GA13250@splinter> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20190730100416.GA13250@splinter> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 07/30/2019 13:04, Ido Schimmel wrote: > On Tue, Jul 30, 2019 at 10:30:28AM +0200, Allan W. Nielsen wrote: > > The 07/30/2019 10:06, Ido Schimmel wrote: > > > As a bonus, existing drivers could benefit from it, as MDB entries are already > > > notified by MAC. > > Not sure I follow. When FDB entries are added, it also generates notification > > events. > > I meant the switchdev notification sent to drivers: > > /* SWITCHDEV_OBJ_ID_PORT_MDB */ > struct switchdev_obj_port_mdb { > struct switchdev_obj obj; > unsigned char addr[ETH_ALEN]; > u16 vid; > }; > > By extending MDB entries to also be keyed by MAC you basically get a lot > of things for free without duplicating the same code for multicast FDBs. Agree, this should be the same. > AFAICS, then only change in the fast path is in br_mdb_get() where you > need to use DMAC as key in case Ethertype is not IPv4/IPv6. That would be nice. -- /Allan