diff options
author | Andrew Lunn | 2017-01-04 19:56:24 +0100 |
---|---|---|
committer | David S. Miller | 2017-01-04 16:34:34 -0500 |
commit | 5952758101fb55844957a8d4fe88402d9827cfb4 (patch) | |
tree | 08199c61b7afd56297b5ad1258327561023e205c /fs/ext4/page-io.c | |
parent | 8eb9f2f9e4468e0fb86c2c06606a0ad03dd1a043 (diff) |
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>
Diffstat (limited to 'fs/ext4/page-io.c')
0 files changed, 0 insertions, 0 deletions