]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Dynamic-toggling-of-vlan_filtering-for-SJA1105-DSA'
authorDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2019 20:21:19 +0000 (13:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2019 20:21:19 +0000 (13:21 -0700)
commitb3b8d0922ae38833b8c18d923047629c41d5115a
tree355b1999a2c0778b6c20bea2bdf7d82c2fd84685
parentb0e8c0d6b5619f48bbb5d5aa7d98afdd1bc05cca
parent9ff3da329d0895c5809b3c3ceb6fd635b0b10405
Merge branch 'Dynamic-toggling-of-vlan_filtering-for-SJA1105-DSA'

Vladimir Oltean says:

====================
Dynamic toggling of vlan_filtering for SJA1105 DSA

This patchset addresses a limitation in dsa_8021q where this sequence of
commands was causing the switch to stop forwarding traffic:

  ip link add name br0 type bridge vlan_filtering 0
  ip link set dev swp2 master br0
  echo 1 > /sys/class/net/br0/bridge/vlan_filtering
  echo 0 > /sys/class/net/br0/bridge/vlan_filtering

The issue has to do with the VLAN table manipulations that dsa_8021q
does without notifying the bridge layer. The solution is to always
restore the VLANs that the bridge knows about, when disabling tagging.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>