summaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-02-05 20:07:14 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-13 12:07:48 +0100
commit66d9cd0f5422bf35e3897b2022858dafd8c6abd2 (patch)
tree2a7deba4775bbe55492a52c8da32072e2c9e742c /net/batman-adv
parentnet: dsa: mv88e6xxx: fix software VLAN deletion (diff)
downloadlinux-66d9cd0f5422bf35e3897b2022858dafd8c6abd2.tar.xz
linux-66d9cd0f5422bf35e3897b2022858dafd8c6abd2.zip
net: dsa: mv88e6xxx: do not leave reserved VLANs
BRIDGE_VLAN_FILTERING automatically adds a newly bridged port to the VLAN with the bridge's default_pvid. The mv88e6xxx driver currently reserves VLANs 4000+ for unbridged ports isolation. When a port joins a bridge, it leaves its reserved VLAN. When a port leaves a bridge, it joins again its reserved VLAN. But if the VLAN filtering is disabled, or if this hardware VLAN is already in use, the bridged port ends up with no default VLAN, and the communication with the CPU is thus broken. To fix this, make a port join its reserved VLAN once on setup, never leave it, and restore its PVID after another one was eventually used. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Tested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
0 files changed, 0 insertions, 0 deletions