summaryrefslogtreecommitdiff
path: root/lib/math
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-02-26 09:39:17 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-26 20:44:42 -0800
commit648e53cac7da6a978536dbe57268fe5709994374 (patch)
treedf40c11c130927e3bb65a139b1231584f63e9d7b /lib/math
parentc535f9203209be19b60421b363b0bb2c7e90f298 (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 <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 'lib/math')
0 files changed, 0 insertions, 0 deletions