From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5418213F.2050105@lab.ntt.co.jp> Date: Tue, 16 Sep 2014 20:38:39 +0900 From: Toshiaki Makita MIME-Version: 1.0 References: <1410554691-18467-1-git-send-email-vyasevic@redhat.com> <20140915092405.124ff9d0@urahara> In-Reply-To: <20140915092405.124ff9d0@urahara> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [Bridge] [PATCH 0/3] bridge: Some nice new things for vlan filtering List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephen Hemminger , Vladislav Yasevich Cc: Vladislav Yasevich , netdev@vger.kernel.org, shemminger@vyatta.com, bridge@lists.linux-foundation.org On 2014/09/16 1:24, Stephen Hemminger wrote: > On Fri, 12 Sep 2014 16:44:48 -0400 > Vladislav Yasevich wrote: >=20 >> While working with vlan filtering and non-promisc mode, I've found >> myself wanting untagged traffic to automatically pass through the >> bridge. So I decided to introduce the concept of a per bridge default >> pvid. VLAN 1 is used as default pvid by default and can be changed >> by user through sysfs while vlan filtering is off. (I'll be adding netli= nk >> support now that Jiri Pirko kindly added the ifrastructure). Default >> pvid is assigned to all ports that do not assign their own pvid or >> already have a given vlan configured. This makes it very simple >> to enable vlan filtering on the bridge, not have to configure a thing, >> and still pass untagged traffic. >> >> The other small thing this series adds is automatic update of the >> vlan filter when vlan is configured on top of the bridge. In this >> case we automatically add the given vlan to the bridge filter list. >> The ports may still need to be updated as we don't know which ports >> are allowed to receive a given vlan. >> >> Thanks >> -vlad >> >> Vladislav Yasevich (3): >> bridge: Add a default_pvid sysfs attribute >> bridge: Add filtering support for default_pvid >> bridge; Automatically filter vlans configured on top of bridge >> >> net/bridge/br_device.c | 54 +++++++++++++++++++--- >> net/bridge/br_if.c | 2 + >> net/bridge/br_private.h | 35 ++++++++++++++- >> net/bridge/br_sysfs_br.c | 17 +++++++ >> net/bridge/br_vlan.c | 113 ++++++++++++++++++++++++++++++++++++++++= ++++++- >> 5 files changed, 213 insertions(+), 8 deletions(-) >> >=20 > Please, no special VLAN 1, other equipment has that silliness. >=20 > Why is untagged traffic not treated as VLAN 0? I guess it's respecting 802.1Q spec. Table 9-2=97Reserved VID values VID value: 1 The default PVID value used for classifying frames on ingress through a Bridge Port. The PVID value of a Port can be changed by management. Thanks, Toshiaki Makita From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toshiaki Makita Subject: Re: [PATCH 0/3] bridge: Some nice new things for vlan filtering Date: Tue, 16 Sep 2014 20:38:39 +0900 Message-ID: <5418213F.2050105@lab.ntt.co.jp> References: <1410554691-18467-1-git-send-email-vyasevic@redhat.com> <20140915092405.124ff9d0@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: Vladislav Yasevich , netdev@vger.kernel.org, shemminger@vyatta.com, bridge@lists.linux-foundation.org To: Stephen Hemminger , Vladislav Yasevich Return-path: In-Reply-To: <20140915092405.124ff9d0@urahara> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.linux-foundation.org Errors-To: bridge-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org On 2014/09/16 1:24, Stephen Hemminger wrote: > On Fri, 12 Sep 2014 16:44:48 -0400 > Vladislav Yasevich wrote: >=20 >> While working with vlan filtering and non-promisc mode, I've found >> myself wanting untagged traffic to automatically pass through the >> bridge. So I decided to introduce the concept of a per bridge default >> pvid. VLAN 1 is used as default pvid by default and can be changed >> by user through sysfs while vlan filtering is off. (I'll be adding net= link >> support now that Jiri Pirko kindly added the ifrastructure). Default >> pvid is assigned to all ports that do not assign their own pvid or >> already have a given vlan configured. This makes it very simple >> to enable vlan filtering on the bridge, not have to configure a thing, >> and still pass untagged traffic. >> >> The other small thing this series adds is automatic update of the >> vlan filter when vlan is configured on top of the bridge. In this >> case we automatically add the given vlan to the bridge filter list. >> The ports may still need to be updated as we don't know which ports >> are allowed to receive a given vlan. >> >> Thanks >> -vlad >> >> Vladislav Yasevich (3): >> bridge: Add a default_pvid sysfs attribute >> bridge: Add filtering support for default_pvid >> bridge; Automatically filter vlans configured on top of bridge >> >> net/bridge/br_device.c | 54 +++++++++++++++++++--- >> net/bridge/br_if.c | 2 + >> net/bridge/br_private.h | 35 ++++++++++++++- >> net/bridge/br_sysfs_br.c | 17 +++++++ >> net/bridge/br_vlan.c | 113 ++++++++++++++++++++++++++++++++++++++= ++++++++- >> 5 files changed, 213 insertions(+), 8 deletions(-) >> >=20 > Please, no special VLAN 1, other equipment has that silliness. >=20 > Why is untagged traffic not treated as VLAN 0? I guess it's respecting 802.1Q spec. Table 9-2=97Reserved VID values VID value: 1 The default PVID value used for classifying frames on ingress through a Bridge Port. The PVID value of a Port can be changed by management. Thanks, Toshiaki Makita