From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shmulik Ladkani Subject: Re: [PATCH net-next V6 02/14] bridge: Add vlan filtering infrastructure Date: Tue, 22 Jan 2013 17:55:24 +0200 Message-ID: <20130122175524.033c6f7f.shmulik.ladkani@gmail.com> References: <1358360289-23249-1-git-send-email-vyasevic@redhat.com> <1358360289-23249-3-git-send-email-vyasevic@redhat.com> <50FC307A.5090003@redhat.com> <20130120113825.759b4a58@nehalam.linuxnetplumber.net> <50FC9F03.5000102@redhat.com> <20130121134534.78032a54.shmulik.ladkani@gmail.com> <50FEA2CF.4060406@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bridge@lists.linux-foundation.org, Stephen Hemminger , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , netdev@vger.kernel.org, davem@davemloft.net, shemminger@vyatta.com, mst@redhat.com To: vyasevic@redhat.com Return-path: Received: from mail-bk0-f54.google.com ([209.85.214.54]:48336 "EHLO mail-bk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754383Ab3AVPzi (ORCPT ); Tue, 22 Jan 2013 10:55:38 -0500 Received: by mail-bk0-f54.google.com with SMTP id w5so558519bku.13 for ; Tue, 22 Jan 2013 07:55:36 -0800 (PST) In-Reply-To: <50FEA2CF.4060406@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: Thanks Vlad, On Tue, 22 Jan 2013 09:31:43 -0500 Vlad Yasevich wrote: > > I guess this might simplify the data structures involved, avoiding the > > refcounts, etc... > > > > The penaties are: > > - memory > > - aesthetics (?) > > - inefficient if query is "give me the entire list of VLANs port P is > > member of". But do we have such a query in bridge's code? > > Yes. When a mac address is added to a port without an explicit vlan tag > we try to add it for every vlan available on the port. I see. Can't this be bypassed by adding a _single_ FDB entry whose VID value denotes "member of ANY vlan" (value outside the valid 0-4095 range)? > Also, in the API, the user may request vlans configured on a port. Personally I'd pay the penalty implementing this specific user request in an inefficeint way, to acheive overall simplicity in core bridge code. But that's just my humble opinion, maybe others might spot drawbacks taking this approach. BTW, went through the ML, couldn't find the reason why dropped the per-port vlan bitmap and replaced with a vlan list (after your RFC v2 patches). Care to explain what was your motivation? Regards, Shmulik