linux/drivers/net/dsa
Vladimir Oltean 703b762190 net: mscc: ocelot: add ops for decoding watermark threshold and occupancy
We'll need to read back the watermark thresholds and occupancy from
hardware (for devlink-sb integration), not only to write them as we did
so far in ocelot_port_set_maxlen. So introduce 2 new functions in struct
ocelot_ops, similar to wm_enc, and implement them for the 3 supported
mscc_ocelot switches.

Remove the INUSE and MAXUSE unpacking helpers for the QSYS_RES_STAT
register, because that doesn't scale with the number of switches that
mscc_ocelot supports now. They have different bit widths for the
watermarks, and we need function pointers to abstract that difference
away.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-15 20:02:34 -08:00
..
b53 net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
hirschmann net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
microchip net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
mv88e6xxx net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
ocelot net: mscc: ocelot: add ops for decoding watermark threshold and occupancy 2021-01-15 20:02:34 -08:00
qca net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
sja1105 net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
xrs700x net: dsa: add Arrow SpeedChips XRS700x driver 2021-01-15 15:37:37 -08:00
bcm_sf2_cfp.c net: dsa: remove the transactional logic from VLAN objects 2021-01-11 16:00:57 -08:00
bcm_sf2_regs.h net: dsa: bcm_sf2: support BCM4908's integrated switch 2021-01-09 19:18:10 -08:00
bcm_sf2.c net: dsa: remove the transactional logic from VLAN objects 2021-01-11 16:00:57 -08:00
bcm_sf2.h net: dsa: bcm_sf2: recalculate switch clock rate based on ports 2020-09-03 15:08:03 -07:00
dsa_loop_bdinfo.c
dsa_loop.c net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
dsa_loop.h
Kconfig net: dsa: add Arrow SpeedChips XRS700x driver 2021-01-15 15:37:37 -08:00
lan9303_i2c.c
lan9303_mdio.c
lan9303-core.c net: dsa: remove the transactional logic from MDB entries 2021-01-11 16:00:57 -08:00
lan9303.h
lantiq_gswip.c net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
lantiq_pce.h
Makefile net: dsa: add Arrow SpeedChips XRS700x driver 2021-01-15 15:37:37 -08:00
mt7530.c net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
mt7530.h net: dsa: mt7530: support setting ageing time 2020-12-08 16:18:26 -08:00
mv88e6060.c
mv88e6060.h
qca8k.c net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
qca8k.h net: dsa: qca8k: Add 802.1q VLAN support 2020-08-03 15:45:39 -07:00
realtek-smi-core.c net: dsa: rtl8366rb: Roof MTU for switch 2020-10-10 11:25:05 -07:00
realtek-smi-core.h net: dsa: remove the transactional logic from VLAN objects 2021-01-11 16:00:57 -08:00
rtl8366.c net: dsa: remove the transactional logic from VLAN objects 2021-01-11 16:00:57 -08:00
rtl8366rb.c net: dsa: set configure_vlan_while_not_filtering to true by default 2021-01-15 17:29:40 -08:00
vitesse-vsc73xx-core.c
vitesse-vsc73xx-platform.c net: dsa: vitesse-vsc73xx: Convert to plain comments to avoid kerneldoc warnings 2020-07-05 15:49:03 -07:00
vitesse-vsc73xx-spi.c net: dsa: vitesse-vsc73xx: Convert to plain comments to avoid kerneldoc warnings 2020-07-05 15:49:03 -07:00
vitesse-vsc73xx.h