]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'vlan-improvements-for-ocelot-switch'
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Nov 2020 01:09:10 +0000 (17:09 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Nov 2020 01:09:10 +0000 (17:09 -0800)
commit3da1e88e442a2fd63404afdc35e62d6e20d5e241
tree6d2af69b39fc42949b8099688599c57556b546d8
parentf1a0a1eab93bdbea6f528f593e90318227cc62c2
parente611670637cd8ca364af92c93f1c01cfd7e81410
Merge branch 'vlan-improvements-for-ocelot-switch'

Vladimir Oltean says:

====================
VLAN improvements for Ocelot switch

The main reason why I started this work is that deleting the bridge mdb
entries fails when the bridge is deleted, as described here:
https://lore.kernel.org/netdev/20201015173355.564934-1-vladimir.oltean@nxp.com/

In short, that happens because the bridge mdb entries are added with a
vid of 1, but deletion is attempted with a vid of 0. So the deletion
code fails to find the mdb entries.

The solution is to make ocelot use a pvid of 0 when it is under a bridge
with vlan_filtering 0. When vlan_filtering is 1, the pvid of the bridge
is what is programmed into the hardware.

The patch series also uncovers more bugs and does some more cleanup, but
the above is the main idea behind it.
====================

Link: https://lore.kernel.org/r/20201031102916.667619-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>