diff options
author | Jiri Pirko <[email protected]> | 2020-02-26 09:39:17 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-02-26 20:44:42 -0800 |
commit | 648e53cac7da6a978536dbe57268fe5709994374 (patch) | |
tree | df40c11c130927e3bb65a139b1231584f63e9d7b /net/switchdev/switchdev.c | |
parent | c535f9203209be19b60421b363b0bb2c7e90f298 (diff) |
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 <[email protected]>
Tested-by: Alex Kushnarov <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions