diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-06-13 18:25:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-15 16:40:30 -0400 |
commit | 760c80b70bed2cd01630e8595d1bbde910339f31 (patch) | |
tree | 0b211322c79bf6cf3028ebf5109c7e97aaaaffa0 /net/lapb/lapb_iface.c | |
parent | ef7bfa84725d891bbdb88707ed55b2cbf94942bb (diff) |
net: dsa: rtl8366: Fix up VLAN filtering
We get this regression when using RTL8366RB as part of a bridge
with OpenWrt:
WARNING: CPU: 0 PID: 1347 at net/switchdev/switchdev.c:291
switchdev_port_attr_set_now+0x80/0xa4
lan0: Commit of attribute (id=7) failed.
(...)
realtek-smi switch lan0: failed to initialize vlan filtering on this port
This is because it is trying to disable VLAN filtering
on VLAN0, as we have forgot to add 1 to the port number
to get the right VLAN in rtl8366_vlan_filtering(): when
we initialize the VLAN we associate VLAN1 with port 0,
VLAN2 with port 1 etc, so we need to add 1 to the port
offset.
Fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions