Re: [PATCH net-next 07/14] net: dsa: mv88e6xxx: rework ATU Remove

2017-03-09 Thread Andrew Lunn
> -static int _mv88e6xxx_atu_cmd(struct mv88e6xxx_chip *chip, u16 fid, u16 cmd) > -{ > - u16 val; > - int err; > - > - if (mv88e6xxx_has(chip, MV88E6XXX_FLAG_G1_ATU_FID)) { > - err = mv88e6xxx_g1_write(chip, GLOBAL_ATU_FID, fid); > - if (err) > -

Re: [PATCH net-next 07/14] net: dsa: mv88e6xxx: rework ATU Remove

2017-03-09 Thread Andrew Lunn
> -static int _mv88e6xxx_atu_cmd(struct mv88e6xxx_chip *chip, u16 fid, u16 cmd) > -{ > - u16 val; > - int err; > - > - if (mv88e6xxx_has(chip, MV88E6XXX_FLAG_G1_ATU_FID)) { > - err = mv88e6xxx_g1_write(chip, GLOBAL_ATU_FID, fid); > - if (err) > -

[PATCH net-next 07/14] net: dsa: mv88e6xxx: rework ATU Remove

2017-03-09 Thread Vivien Didelot
Add a fresh documented implementation of the ATU Move operation, and use it to replace the current ATU Remove operation. Note that not all Marvell switch chip support the ATU Move operation. For those supporting it, the number of bits used to mask the destination port may vary. 6352 and such use

[PATCH net-next 07/14] net: dsa: mv88e6xxx: rework ATU Remove

2017-03-09 Thread Vivien Didelot
Add a fresh documented implementation of the ATU Move operation, and use it to replace the current ATU Remove operation. Note that not all Marvell switch chip support the ATU Move operation. For those supporting it, the number of bits used to mask the destination port may vary. 6352 and such use