[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190117113647.GF13242@t480s.localdomain>
Date: Thu, 17 Jan 2019 11:36:47 -0500
From: Vivien Didelot <vivien.didelot@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, Florian Fainelli <f.fainelli@...il.com>,
andrew@...n.ch, davem@...emloft.net, idosch@...lanox.com,
jiri@...lanox.com, ilias.apalodimas@...aro.org,
ivan.khoronzhuk@...aro.org, roopa@...ulusnetworks.com,
nikolay@...ulusnetworks.com
Subject: Re: [PATCH net-next 03/14] net: dsa: b53: Properly account for VLAN
filtering
Hi Florian,
On Wed, 16 Jan 2019 12:00:51 -0800, Florian Fainelli <f.fainelli@...il.com> wrote:
> + /* Handle the case were multiple bridges span the same switch device
> + * and one of them has a different setting than what is being requested
> + * which would be breaking filtering semantics for any of the other
> + * bridge devices.
> + */
> + b53_for_each_port(dev, i) {
> + bridge_dev = dsa_to_port(ds, i)->bridge_dev;
> + if (bridge_dev &&
> + bridge_dev != dsa_to_port(ds, port)->bridge_dev &&
> + br_vlan_enabled(bridge_dev) != vlan_filtering) {
> + netdev_err(bridge_dev,
> + "VLAN filtering is global to the switch!\n");
> + return -EINVAL;
> + }
> + }
Unbridged ports must act as standard NICs and thus forward taggued frames.
What happens to them if there's a bridge with VLAN filtering enabled spawned
on other ports of your switch? Will the unbridged ports filter VLAN?
Thanks,
Vivien
Powered by blists - more mailing lists