Files
linux/drivers
Linus Walleij fc762c9997 net: dsa: rtl8366: Fix up VLAN filtering
[ Upstream commit 760c80b70b ]

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: d8652956cf ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-22 08:15:13 +02:00
..
2019-05-31 06:46:31 -07:00
2019-06-15 11:54:11 +02:00
2019-06-19 08:18:00 +02:00
2019-05-14 19:17:53 +02:00
2019-06-19 08:18:06 +02:00
2018-12-21 14:15:17 +01:00
2018-11-13 11:08:51 -08:00
2018-11-27 16:13:09 +01:00
2019-04-27 09:36:31 +02:00
2019-05-31 06:46:14 -07:00