OpenCloudOS-Kernel/drivers/net/dsa/qca
Christian Marangi dfd739f182 net: dsa: qca8k: fix mdb add/del case with 0 VID
The qca8k switch doesn't support using 0 as VID and require a default
VID to be always set. MDB add/del function doesn't currently handle
this and are currently setting the default VID.

Fix this by correctly handling this corner case and internally use the
default VID for VID 0 case.

Fixes: ba8f870dfa ("net: dsa: qca8k: add support for mdb_add/del")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-07-26 08:50:10 +01:00
..
Kconfig net: dsa: qca8k: add CONFIG_LEDS_TRIGGERS dependency 2023-06-02 10:55:41 +01:00
Makefile net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00
ar9331.c net: dsa: ar9331: Use explict flags for regmap single read/write 2023-07-14 08:34:24 +01:00
qca8k-8xxx.c net: dsa: qca8k: enable use_single_write for qca8xxx 2023-07-26 08:50:10 +01:00
qca8k-common.c net: dsa: qca8k: fix mdb add/del case with 0 VID 2023-07-26 08:50:10 +01:00
qca8k-leds.c net: dsa: qca8k: add support for additional modes for netdev trigger 2023-06-22 19:51:42 -07:00
qca8k.h net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00
qca8k_leds.h net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00