Skip to content

Reduce cache overhead a bit

Phil Sutter netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cache: Filter tables on kernel sideinclude/mnl.h include/netlink.h src/cache.c +2 more+33 -150 replies
2/5cache: Filter rule list on kernel sideinclude/mnl.h src/cache.c src/mnl.c+24 -240 replies
3/5cache: Filter chain list on kernel sideinclude/mnl.h src/cache.c src/mnl.c+39 -230 replies
4/5cache: Filter set list on server sideinclude/mnl.h src/cache.c src/mnl.c+49 -310 replies
5/5cache: Support filtering for a specific flowtableinclude/cache.h include/mnl.h src/cache.c +3 more+103 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [nft PATCH v2 0/5] Reduce cache overhead a bit

Second try after a quick review and some testing:

- Tested with stable kernels v4.4.293 and v4.9.291: This series does not change any of the shell tests' results. The changes are supposedly bug- and feature-compatible.

- Upon error return from kernel, check errno to make sure it is really ENOENT which is expected instead of ignoring any error with non-dump requests.

Phil Sutter (5):
cache: Filter tables on kernel side
cache: Filter rule list on kernel side
cache: Filter chain list on kernel side
cache: Filter set list on server side
cache: Support filtering for a specific flowtable

 include/cache.h                               |   1 +
 include/mnl.h                                 |  14 +-
 include/netlink.h                             |   3 +-
 src/cache.c                                   | 188 ++++++++++--------
 src/mnl.c                                     |  93 +++++++--
 src/netlink.c                                 |  15 +-
 tests/shell/testcases/listing/0020flowtable_0 |  51 ++++-
 7 files changed, 248 insertions(+), 117 deletions(-)
Signature · 1 line
2.33.0