netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correct PVID behavior with bridge's VLAN filtering on/off?
@ 2018-12-11 19:48 Florian Fainelli
  2018-12-12  9:02 ` Ido Schimmel
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2018-12-11 19:48 UTC (permalink / raw)
  To: netdev, roopa, nikolay, bridge, jiri, idosch; +Cc: andrew, vivien.didelot

Hi Nikolay, Roopa, Jiri, Ido,

When a bridge has vlan_filtering=0 and notifies a switch driver through
HOST_OBJ_MDB about MC addresses that the CPU/management port is
interested in getting MC traffic for, I am seeing that the mdb->vid is
set to 0 because br_allowed_ingress() checks for BROPT_VLAN_ENABLED
which is now disabled and so we never populated *vid to anything but 0
because the caller: br_handle_frame_finish() zeroed it out.

This creates a problem with the b53 DSA switch driver because in order
to match the bridge's default_pvid, we did program the switch's "default
tag" to be 1, which gets used for all untagged frames that ingress the
switch (which AFAICT is correct behavior for PVID).

Despite having turned off VLAN filtering in the switch such that it does
allow ingress of packets with a VID that is not present in the VLAN
table (violation), Multicast addresses do behave differently and we
really must be strictly matching the programmed PVID in order for MC
frames to ingress the switch even with VLAN filtering turned off.

So with all that being written, should the bridge still be sending MDB
notifications and use the bridge's default_pvid even with
vlan_filtering=0? And if we did that, what use case could we be possibly
breaking?

Let me know if this is not clear so I can provide mode details.

Thank you very much.
-- 
Florian

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-16  7:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11 19:48 Correct PVID behavior with bridge's VLAN filtering on/off? Florian Fainelli
2018-12-12  9:02 ` Ido Schimmel
2018-12-12 19:52   ` Florian Fainelli
2018-12-16  7:20     ` Ido Schimmel
2018-12-15 18:10   ` Florian Fainelli
2018-12-16  7:55     ` Ido Schimmel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).