diff options
author | 2020-02-26 09:39:17 +0100 | |
---|---|---|
committer | 2020-02-26 20:44:42 -0800 | |
commit | 648e53cac7da6a978536dbe57268fe5709994374 (patch) | |
tree | df40c11c130927e3bb65a139b1231584f63e9d7b /net/switchdev/switchdev.c | |
parent | af_llc: fix if-statement empty body warning (diff) | |
download | linux-dev-648e53cac7da6a978536dbe57268fe5709994374.tar.xz linux-dev-648e53cac7da6a978536dbe57268fe5709994374.zip |
mlxsw: spectrum_switchdev: Optimize SFN records processing
Currently, only one SFN query is done from repetitive work at a time,
processing 64 entries. Another work iteration is scheduled in 100ms,
that means that the max rate of learned FDB entries is limited to 6400/s.
That is slow. Fix this by doing 2 optimizations:
1) Run 10 SFN queries at a time.
2) In case the SFN is not drained, schedule work with 0 delay to allow
to continue processing rest of the records.
On a testing setup with 500K entries the time to process decreased
from 870secs to 10secs.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Tested-by: Alex Kushnarov <alexanderk@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions