linux_dsm_epyc7002/drivers/net/dsa/mv88e6xxx
Andrew Lunn 5952758101 dsa: mv88e6xxx: Optimise atu_get
Lookup in the ATU can be performed starting from a given MAC
address. This is faster than starting with the first possible MAC
address and iterating all entries.

Entries are returned in numeric order. So if the MAC address returned
is bigger than what we are searching for, we know it is not in the
ATU.

Using the benchmark provided by Volodymyr Bendiuga
<volodymyr.bendiuga@gmail.com>,

https://www.spinics.net/lists/netdev/msg411550.html

on an Marvell Armada 370 RD, the test to add a number of static fdb
entries went from 1.616531 seconds to 0.312052 seconds.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-04 16:34:34 -05:00
..
chip.c dsa: mv88e6xxx: Optimise atu_get 2017-01-04 16:34:34 -05:00
global1.c net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
global1.h net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
global2.c net: dsa: mv88e6xxx: Reserved Management frames to CPU 2016-12-03 23:18:38 -05:00
global2.h net: dsa: mv88e6xxx: Reserved Management frames to CPU 2016-12-03 23:18:38 -05:00
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile net: dsa: mv88e6xxx: add port files 2016-11-04 14:39:58 -04:00
mv88e6xxx.h net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
port.c net: dsa: mv88e6xxx: Implement mv88e6390 pause control 2016-12-03 23:18:39 -05:00
port.h net: dsa: mv88e6xxx: Implement mv88e6390 pause control 2016-12-03 23:18:39 -05:00