]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-nfp-map-op-cache'
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 22:49:05 +0000 (00:49 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 22:49:05 +0000 (00:49 +0200)
commit28b9bd19437171690481d0b0966d2f07acc1ea8e
tree7e459c0444b918afc4470831d67aeef8dbc8dac1
parente5bd44472a7b816f6a07dfee2ce1694a6e2e4ceb
parentaf1a0eaced560962dbc39f3b9a03fbe598d0692a
Merge branch 'bpf-nfp-map-op-cache'

Jakub Kicinski says:

====================
This set adds a small batching and cache mechanism to the driver.
Map dumps require two operations per element - get next, and
lookup. Each of those needs a round trip to the device, and on
a loaded system scheduling out and in of the dumping process.
This set makes the driver request a number of entries at the same
time, and if no operation which would modify the map happens
from the host side those entries are used to serve lookup
requests for up to 250us, at which point they are considered
stale.

This set has been measured to provide almost 4x dumping speed
improvement, Jaco says:

OLD dump times
    500 000 elements: 26.1s
  1 000 000 elements: 54.5s

NEW dump times
    500 000 elements: 7.6s
  1 000 000 elements: 16.5s
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>