diff options
author | Vladimir Oltean <[email protected]> | 2019-05-02 23:23:34 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-05-03 10:49:17 -0400 |
commit | 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5 (patch) | |
tree | feac9879b812fff6394bba7c875007002847a759 /scripts/gdb/linux/tasks.py | |
parent | bf5bc3ce8a8f32a0d45b6820ede8f9fc3e9c23df (diff) |
net: dsa: sja1105: Add support for VLAN operations
VLAN filtering cannot be properly disabled in SJA1105. So in order to
emulate the "no VLAN awareness" behavior (not dropping traffic that is
tagged with a VID that isn't configured on the port), we need to hack
another switch feature: programmable TPID (which is 0x8100 for 802.1Q).
We are reprogramming the TPID to a bogus value which leaves the switch
thinking that all traffic is untagged, and therefore accepts it.
Under a vlan_filtering bridge, the proper TPID of ETH_P_8021Q is
installed again, and the switch starts identifying 802.1Q-tagged
traffic.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions