mirror_ubuntu-kernels/drivers/net/dsa
Vladimir Oltean 58bf4db695 net: dsa: felix: fix race between reading PSFP stats and port stats
Both PSFP stats and the port stats read by ocelot_check_stats_work() are
indirectly read through the same mechanism - write to STAT_CFG:STAT_VIEW,
read from SYS:STAT:CNT[n].

It's just that for port stats, we write STAT_VIEW with the index of the
port, and for PSFP stats, we write STAT_VIEW with the filter index.

So if we allow them to run concurrently, ocelot_check_stats_work() may
change the view from vsc9959_psfp_counters_get(), and vice versa.

Fixes: 7d4b564d6a ("net: dsa: felix: support psfp filter on vsc9959")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220629183007.3808130-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-06-30 11:37:09 -07:00
..
b53 Bitmap patches for 5.19-rc1 2022-06-04 14:04:27 -07:00
hirschmann net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup() 2022-06-23 20:39:22 -07:00
microchip net: dsa: microchip: remove unused members in ksz_device 2022-05-18 12:51:00 +01:00
mv88e6xxx net: dsa: mv88e6xxx: correctly report serdes link failure 2022-06-08 20:58:30 -07:00
ocelot net: dsa: felix: fix race between reading PSFP stats and port stats 2022-06-30 11:37:09 -07:00
qca
realtek net: dsa: realtek: rtl8365mb: fix GMII caps for ports with internal PHY 2022-06-08 21:03:51 -07:00
sja1105
xrs700x
bcm_sf2_cfp.c
bcm_sf2_regs.h
bcm_sf2.c net: dsa: bcm_sf2: force pause link settings 2022-06-23 20:46:39 -07:00
bcm_sf2.h
dsa_loop_bdinfo.c
dsa_loop.c
dsa_loop.h
Kconfig net: dsa: restrict SMSC_LAN9303_I2C kconfig 2022-05-22 23:06:59 +01:00
lan9303_i2c.c
lan9303_mdio.c
lan9303-core.c
lan9303.h
lantiq_gswip.c net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list 2022-06-07 20:45:14 -07:00
lantiq_pce.h
Makefile
mt7530.c
mt7530.h
mv88e6060.c
mv88e6060.h
qca8k.c net: dsa: qca8k: reset cpu port on MTU change 2022-06-22 18:32:58 -07:00
qca8k.h net: dsa: qca8k: reduce mgmt ethernet timeout 2022-06-22 18:33:51 -07:00
vitesse-vsc73xx-core.c
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h