]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:11:25 +0000 (10:11 +0100)
commit119eafcae390cbbbcfefb6d8763670ff421c57a2
tree975dbdae31ecf0f2434a94ebddf065c615570440
parentf0e113225aa1d17b70653e8219d291856cefc9f0
net: dsa: rtl8366rb: Support all 4096 VLANs

[ 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>
drivers/net/dsa/rtl8366rb.c