]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rtl8366rb: Support all 4096 VLANs
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Sep 2020 20:37:33 +0000 (22:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 21:49:14 +0000 (14:49 -0700)
commit165bb58dfc30e2d20b8b835eb4fe9e6de13c9923
tree4030bc863c859dbbaf3777310a5889b118af05bd
parent06e0e471cfda32c5235927d8ca8032a3a6b566e6
net: dsa: rtl8366rb: Support all 4096 VLANs

There is an off-by-one error in rtl8366rb_is_vlan_valid()
making VLANs 0..4094 valid while it should be 1..4095.
Fix it.

Fixes: 397676d73a0a ("net: dsa: realtek-smi: Add Realtek SMI driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rtl8366rb.c