]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:48:48 +0000 (14:48 +0100)
commitfd5e91739912c5ddb4982fb0f446a6fa74c1f552
treeb7770a6c84b35126e69783285ff896fc944d2621
parentbf33b7237e89948f0d9c7e57080619ef5969abf4
net: dsa: rtl8366rb: Support all 4096 VLANs

BugLink: https://bugs.launchpad.net/bugs/1902115
[ Upstream commit a7920efdd86d8a0d74402dbc80ead03b023294ba ]

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: d8652956cf37 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/net/dsa/rtl8366rb.c