From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH v3 net-next 0/5] IGMP snooping for local traffic Date: Thu, 9 Nov 2017 11:38:26 -0800 Message-ID: <1067aa67-1a49-643f-85d2-e3d8a34a6db1@gmail.com> References: <87d14ut405.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> <20171107174222.GA15028@lunn.ch> <87mv3y7y52.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> <20171107210142.GA21784@lunn.ch> <112f2916-d2de-06c0-87b9-a6c49967bcdf@gmail.com> <20171107221710.GE21784@lunn.ch> <87lgjhhg0j.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> <20171107231700.GD7601@lunn.ch> <16bdbcfe-d2b3-5e66-f7b8-12020b732625@gmail.com> <20171109193011.GJ13277@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Vivien Didelot , David Miller , netdev To: Andrew Lunn Return-path: Received: from mail-wr0-f173.google.com ([209.85.128.173]:49845 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbdKITib (ORCPT ); Thu, 9 Nov 2017 14:38:31 -0500 Received: by mail-wr0-f173.google.com with SMTP id o88so6612892wrb.6 for ; Thu, 09 Nov 2017 11:38:31 -0800 (PST) In-Reply-To: <20171109193011.GJ13277@lunn.ch> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/09/2017 11:30 AM, Andrew Lunn wrote: >> This means that switchdev drivers won't ever have to treat a HOST_MDB >> notification any differently than a PORT_MDB notification > > No, they need to treat it very differently. Allow me to rephrase, switchdev drivers will ignore HOST_MDB notifications because that does not resolve to something they can do something about. > > A PORT_MDB says that frames for a group should be sent out that port. > So it probably needs to iterate all the ports in the bridge and add a > match/action to each port saying frames coming in for that group > should be sent out the port listed in the PORT_MDB. > > A HOST_MDB say that frames for a group coming in from the port listed > in the HOST_MDB must be sent to the host. The match/action applies > directly to the port, other ports are not involved. Fine, then add a boolean to the PORT_MDB notification that says ingress or egress and voila, or am I missing something? -- Florian