On 1/8/2021 9:59 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > 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.olt...@nxp.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH v3 net-next 00/10] Configuring congestion watermar... Vladimir Oltean
- [PATCH v3 net-next 01/10] net: mscc: ocelot: auto-de... Vladimir Oltean
- Re: [PATCH v3 net-next 01/10] net: mscc: ocelot:... Florian Fainelli
- [PATCH v3 net-next 02/10] net: mscc: ocelot: add ops... Vladimir Oltean
- Re: [PATCH v3 net-next 02/10] net: mscc: ocelot:... Florian Fainelli
- Re: [PATCH v3 net-next 02/10] net: mscc: ocelot:... Jakub Kicinski
- Re: [PATCH v3 net-next 02/10] net: mscc: oce... Vladimir Oltean
- Re: [PATCH v3 net-next 02/10] net: mscc:... Jakub Kicinski
- [PATCH v3 net-next 03/10] net: dsa: add ops for devl... Vladimir Oltean
- Re: [PATCH v3 net-next 03/10] net: dsa: add ops ... Andrew Lunn
- Re: [PATCH v3 net-next 03/10] net: dsa: add ops ... Florian Fainelli
- [PATCH v3 net-next 06/10] net: mscc: ocelot: export ... Vladimir Oltean
- Re: [PATCH v3 net-next 06/10] net: mscc: ocelot:... Florian Fainelli
- [PATCH v3 net-next 09/10] net: mscc: ocelot: initial... Vladimir Oltean
- Re: [PATCH v3 net-next 09/10] net: mscc: ocelot:... Florian Fainelli