linux-stable/drivers/net/dsa
Linus Walleij 7c12c2fe45 net: dsa: rtl8366rb: Fix off-by-one bug
[ Upstream commit 5f5f12f5d4 ]

The max VLAN number with non-4K VLAN activated is 15, and the
range is 0..15. Not 16.

The impact should be low since we by default have 4K VLAN and
thus have 4095 VLANs to play with in this switch. There will
not be a problem unless the code is rewritten to only use
16 VLANs.

Fixes: d8652956cf ("net: dsa: realtek-smi: Add Realtek SMI driver")
Cc: Mauri Sandberg <sandberg@mailfence.com>
Cc: DENG Qingfang <dqfext@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
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>
2021-11-17 09:48:34 +01:00
..
b53 net: dsa: b53: Fix calculating number of switch ports 2021-09-22 12:26:45 +02:00
microchip net: dsa: microchip: Fix ksz_read64() 2021-08-18 08:56:59 +02:00
mv88e6xxx net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz 2021-07-28 13:31:01 +02:00
sja1105 net: dsa: sja1105: fix broken backpressure in .port_fdb_dump 2021-08-18 08:57:00 +02:00
bcm_sf2.c net: dsa: bcm_sf2: Qualify phydev->dev_flags based on port 2021-03-30 14:35:25 +02:00
bcm_sf2.h
bcm_sf2_cfp.c net: dsa: bcm_sf2: Fix overflow checks 2020-04-23 10:36:42 +02:00
bcm_sf2_regs.h
dsa_loop.c net: dsa: loop: Add module soft dependency 2020-05-20 08:20:11 +02:00
dsa_loop.h
dsa_loop_bdinfo.c
Kconfig
lan9303-core.c net: dsa: lan9303: fix broken backpressure in .port_fdb_dump 2021-08-18 08:57:00 +02:00
lan9303.h
lan9303_i2c.c
lan9303_mdio.c
lantiq_gswip.c net: dsa: lantiq_gswip: fix register definition 2021-10-27 09:54:25 +02:00
lantiq_pce.h
Makefile
mt7530.c net: dsa: mt7530: fix VLAN traffic leaks again 2021-09-03 10:08:16 +02:00
mt7530.h net: dsa: mt7530: set CPU port to fallback mode 2020-06-07 13:18:48 +02:00
mv88e6060.c
mv88e6060.h
qca8k.c
qca8k.h
realtek-smi-core.c
realtek-smi-core.h net: dsa: rtl8366: Refactor VLAN/PVID init 2020-10-29 09:57:40 +01:00
rtl8366.c net: dsa: rtl8366: Skip PVID setting if not requested 2020-10-29 09:57:40 +01:00
rtl8366rb.c net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-17 09:48:34 +01:00
vitesse-vsc73xx-core.c
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h