Re: [PATCH v2 net-next 10/13] net: mscc: ocelot: extend watermark encoding function

2020-05-30 Thread Florian Fainelli
On 5/30/2020 4:51 AM, Vladimir Oltean wrote: > From: Maxim Kochetkov > > The ocelot_wm_encode function deals with setting thresholds for pause > frame start and stop. In Ocelot and Felix the register layout is the > same, but for Seville, it isn't. The easiest way to accommodate Seville > hard

[PATCH v2 net-next 10/13] net: mscc: ocelot: extend watermark encoding function

2020-05-30 Thread Vladimir Oltean
From: Maxim Kochetkov The ocelot_wm_encode function deals with setting thresholds for pause frame start and stop. In Ocelot and Felix the register layout is the same, but for Seville, it isn't. The easiest way to accommodate Seville hardware configuration is to introduce a function pointer for se