From patchwork Fri Jan 11 17:20:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stephen hemminger X-Patchwork-Id: 211386 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4E4172C023D for ; Sat, 12 Jan 2013 04:21:36 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753946Ab3AKRVd (ORCPT ); Fri, 11 Jan 2013 12:21:33 -0500 Received: from mail.vyatta.com ([76.74.103.46]:45207 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543Ab3AKRVc (ORCPT ); Fri, 11 Jan 2013 12:21:32 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id C5D9614104C1; Fri, 11 Jan 2013 09:21:31 -0800 (PST) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x5e61iAeMmZp; Fri, 11 Jan 2013 09:21:30 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-80-93.bvtn.or.frontiernet.net [50.53.80.93]) by mail.vyatta.com (Postfix) with ESMTPSA id E65DB14101D3; Fri, 11 Jan 2013 09:21:29 -0800 (PST) Date: Fri, 11 Jan 2013 09:20:04 -0800 From: Stephen Hemminger To: vyasevic@redhat.com Cc: netdev@vger.kernel.org, davem@davemloft.net, stephen@redhat.com, bridge@lists.linux-foundation.org, shmulik.ladkani@gmail.com, mst@redhat.com Subject: Re: [PATCH net-next v5 01/14] vlan: wrap hw-acceleration calls in separate functions. Message-ID: <20130111092004.2d55ae65@nehalam.linuxnetplumber.net> In-Reply-To: <50EF660B.2090500@redhat.com> References: <1357751882-8619-1-git-send-email-vyasevic@redhat.com> <1357751882-8619-2-git-send-email-vyasevic@redhat.com> <20130110102525.2ff40c12@nehalam.linuxnetplumber.net> <50EF0B76.2040503@redhat.com> <20130110140749.153023fa@nehalam.linuxnetplumber.net> <50EF660B.2090500@redhat.com> Organization: Vyatta Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org What I think is the least intrusive and allows for maximum flexibility is having the VLAN bridge filtering depend on VLAN support (CONFIG_VLAN_8021Q). There already is drivers that depend on that value to enable filtering. And make the support of VLAN filtering in the bridge conditional like IGMP snooping is optional the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/net/bridge/Kconfig +++ b/net/bridge/Kconfig @@ -46,3 +46,17 @@ config BRIDGE_IGMP_SNOOPING Say N to exclude this support and reduce the binary size. If unsure, say Y. + +config BRIDGE_VLAN_FILTERING + bool "VLAN filtering" + depends on BRIDGE + depends on VLAN_8021Q + default n + ---help--- + If you say Y here, then the Ethernet bridge will be able to + selectively filter traffic based on VLAN tag. + + Say N to exclude this support and reduce the binary size. + + If unsure, say Y. -- To unsubscribe from this list: send the line "unsubscribe netdev" in