Linus Walleij 15ab7906cc net: dsa: rtl8366: Fix VLAN semantics
The RTL8366 would not handle adding new members (ports) to
a VLAN: the code assumed that ->port_vlan_add() was only
called once for a single port. When intializing the
switch with .configure_vlan_while_not_filtering set to
true, the function is called numerous times for adding
all ports to VLAN1, which was something the code could
not handle.

Alter rtl8366_set_vlan() to just |= new members and
untagged flags to 4k and MC VLAN table entries alike.
This makes it possible to just add new ports to a
VLAN.

Put in some helpful debug code that can be used to find
any further bugs here.

Cc: DENG Qingfang <dqfext@gmail.com>
Cc: Mauri Sandberg <sandberg@mailfence.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
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>
2020-07-28 17:44:23 -07:00
..
2020-07-03 16:15:31 +02:00
2020-06-19 13:09:40 -07:00
2020-07-17 09:58:18 -07:00
2020-07-16 11:26:40 -07:00
2020-07-16 11:26:40 -07:00
2020-07-28 13:43:40 -07:00
2020-07-15 15:58:11 -07:00
2020-07-25 13:18:42 -07:00
2020-06-26 17:26:31 +02:00
2020-06-26 23:53:25 +02:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-06-29 19:10:51 +02:00
2020-07-07 21:04:38 +02:00
2020-07-28 17:44:23 -07:00
2020-07-24 18:30:24 -07:00
2020-07-08 18:00:07 +02:00
2020-06-28 01:08:21 +02:00
2020-06-13 13:29:16 -07:00
2020-06-04 19:09:28 +02:00
2020-06-08 13:01:08 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-07-16 22:08:07 +02:00
2020-07-17 10:24:09 -07:00
2020-06-13 13:29:16 -07:00
2020-07-16 11:10:27 -07:00
2020-07-16 17:30:59 +02:00
2020-06-22 12:34:21 -04:00
2020-07-24 18:30:24 -07:00
2020-07-11 11:16:46 -07:00