WSL2-Linux-Kernel/drivers/net/dsa
Christian Marangi 188c798f3c net: dsa: qca8k: reset cpu port on MTU change
commit 386228c694 upstream.

It was discovered that the Documentation lacks of a fundamental detail
on how to correctly change the MAX_FRAME_SIZE of the switch.

In fact if the MAX_FRAME_SIZE is changed while the cpu port is on, the
switch panics and cease to send any packet. This cause the mgmt ethernet
system to not receive any packet (the slow fallback still works) and
makes the device not reachable. To recover from this a switch reset is
required.

To correctly handle this, turn off the cpu ports before changing the
MAX_FRAME_SIZE and turn on again after the value is applied.

Fixes: f58d2598cf ("net: dsa: qca8k: implement the port MTU callbacks")
Cc: stable@vger.kernel.org
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20220621151122.10220-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-12 16:35:10 +02:00
..
b53 net: dsa: b53: Add SPI ID table 2021-12-08 09:04:47 +01:00
hirschmann net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup() 2022-07-07 17:53:27 +02:00
microchip net: dsa: microchip: add spi_device_id tables 2022-04-08 14:22:48 +02:00
mv88e6xxx net: dsa: mv88e6xxx: use BMSR_ANEGCOMPLETE bit for filling an_complete 2022-06-14 18:36:19 +02:00
ocelot net: dsa: felix: suppress -EPROBE_DEFER errors 2022-04-20 09:34:10 +02:00
qca net: dsa: ar9331: register the mdiobus under devres 2022-02-16 12:56:28 +01:00
sja1105 net: dsa: sja1105: break dependency between dsa_port_is_sja1105 and switch driver 2021-10-12 17:33:36 -07:00
xrs700x net: dsa: xrs700x: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
Kconfig net: dsa: restrict SMSC_LAN9303_I2C kconfig 2022-06-09 10:23:03 +02:00
Makefile net: dsa: add Arrow SpeedChips XRS700x driver 2021-01-15 15:37:37 -08:00
bcm_sf2.c net: dsa: bcm_sf2: force pause link settings 2022-07-07 17:53:25 +02:00
bcm_sf2.h net: dsa: bcm_sf2: setup BCM4908 internal crossbar 2021-03-12 17:06:37 -08:00
bcm_sf2_cfp.c net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator 2022-04-08 14:23:54 +02:00
bcm_sf2_regs.h net: dsa: bcm_sf2: fix BCM4908 RGMII reg(s) 2021-03-18 14:44:05 -07:00
dsa_loop.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
dsa_loop.h
dsa_loop_bdinfo.c
lan9303-core.c net: dsa: lan9303: add VLAN IDs to master device 2022-02-23 12:03:11 +01:00
lan9303.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_i2c.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_mdio.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lantiq_gswip.c net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list 2022-06-14 18:36:17 +02:00
lantiq_pce.h
mt7530.c net: dsa: mt7530: 1G can also support 1000BASE-X link mode 2022-06-09 10:22:46 +02:00
mt7530.h net: dsa: mt7530: manually set up VLAN ID 0 2021-08-25 11:09:31 +01:00
mv88e6060.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
mv88e6060.h
qca8k.c net: dsa: qca8k: reset cpu port on MTU change 2022-07-12 16:35:10 +02:00
qca8k.h net: dsa: qca8k: add support for internal phy and internal mdio 2021-05-14 15:30:22 -07:00
realtek-smi-core.c net: dsa: realtek: register the MDIO bus under devres 2021-09-21 13:52:16 +01:00
realtek-smi-core.h net: dsa: propagate extack to .port_vlan_filtering 2021-02-14 17:38:12 -08:00
rtl8366.c net: dsa: rtl8366: Fix a bug in deleting VLANs 2021-11-18 19:16:26 +01:00
rtl8366rb.c net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-18 19:16:26 +01:00
vitesse-vsc73xx-core.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-platform.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-spi.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00