OpenCloudOS-Kernel/drivers/net/dsa/mv88e6xxx
Vivien Didelot dabc1a968a net: dsa: mv88e6xxx: rework ATU GetNext
Add and use a fresh documented implementation of the ATU GetNext.

Since it is not necessary to write the MAC address to iterate from, only
do it once directly in the ATU GetNext operation, if the provided ATU
entry structure is not valid. This makes the user code simpler.

Also, there is no need to loop when getting a single ATU entry. So
remove the mv88e6xxx_atu_get helper and add a simpler snippet in
mv88e6xxx_port_db_load_purge to lookup a given MAC address.

The _mv88e6xxx_atu_mac_{read,write} are not used anymore thus remove
them. _mv88e6xxx_atu_data_{read,write} are still used so keep them.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-12 23:54:06 -07:00
..
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile net: dsa: mv88e6xxx: move ATU ageing time setter 2017-03-12 23:54:05 -07:00
chip.c net: dsa: mv88e6xxx: rework ATU GetNext 2017-03-12 23:54:06 -07:00
global1.c net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
global1.h net: dsa: mv88e6xxx: rework ATU GetNext 2017-03-12 23:54:06 -07:00
global1_atu.c net: dsa: mv88e6xxx: rework ATU GetNext 2017-03-12 23:54:06 -07:00
global2.c net: dsa: mv88e6xxx: Add mv88e6390 watchdog interrupt support 2017-02-13 09:30:22 -05:00
global2.h net: dsa: mv88e6xxx: Add mv88e6390 watchdog interrupt support 2017-02-13 09:30:22 -05:00
mv88e6xxx.h net: dsa: mv88e6xxx: setup message ports 2017-03-12 23:54:05 -07:00
port.c net: dsa: mv88e6xxx: setup message ports 2017-03-12 23:54:05 -07:00
port.h net: dsa: mv88e6xxx: setup message ports 2017-03-12 23:54:05 -07:00