Re: [PATCH net-next 5/7] net: dsa: mv88e6xxx: rework pause limit operation

2017-06-08 Thread Andrew Lunn
On Thu, Jun 08, 2017 at 03:04:43PM -0400, Vivien Didelot wrote: > All Marvell chips supporting Pause frames limiting use 1-byte value for > input and output. > > Old chips have both bytes adjacent in a 16-bit register. New ones have > an indirect table using 8-bit data. > > The mv88e6xxx library

[PATCH net-next 5/7] net: dsa: mv88e6xxx: rework pause limit operation

2017-06-08 Thread Vivien Didelot
All Marvell chips supporting Pause frames limiting use 1-byte value for input and output. Old chips have both bytes adjacent in a 16-bit register. New ones have an indirect table using 8-bit data. The mv88e6xxx library functions (such as in port.c) must not contain driver logic, but only generic