[PATCH nft 00/18] cache updates,v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is another round of patches to update the cache infrastructure
in nftables:

1) Remove all nftables modules after running tests/shell.

2) Restore removal by 64-bit unique handle.

3) Consolidate cache infrastructure.

4) Add hashtable cache for remaining objects.

5) Track deletions on the cache.

Pablo Neira Ayuso (18):
  tests: shell: remove missing modules
  src: unbreak deletion by table handle
  rule: skip fuzzy lookup for unexisting 64-bit handle
  src: pass chain name to chain_cache_find()
  src: consolidate nft_cache infrastructure
  src: consolidate object cache infrastructure
  cache: add hashtable cache for object
  cache: add hashtable cache for flowtable
  cache: add set_cache_del() and use it
  evaluate: add set to the cache
  evaluate: add flowtable to the cache
  cache: missing table cache for several policy objects
  evaluate: add object to the cache
  cache: add hashtable cache for table
  evaluate: remove chain from cache on delete chain command
  evaluate: remove set from cache on delete set command
  evaluate: remove flowtable from cache on delete flowtable command
  evaluate: remove object from cache on delete object command

 include/cache.h                               |  60 ++-
 include/netlink.h                             |   2 +
 include/nftables.h                            |   8 +-
 include/rule.h                                |  31 +-
 src/cache.c                                   | 341 +++++++++++++++---
 src/cmd.c                                     |  17 +-
 src/evaluate.c                                | 275 +++++++++++---
 src/json.c                                    |  38 +-
 src/libnftables.c                             |  13 +-
 src/mnl.c                                     |   2 +-
 src/monitor.c                                 |  26 +-
 src/netlink.c                                 |  25 +-
 src/netlink_delinearize.c                     |   7 +-
 src/rule.c                                    | 170 ++++-----
 tests/shell/run-tests.sh                      |   5 +-
 .../testcases/cache/0008_delete_by_handle_0   |  20 +
 .../cache/0009_delete_by_handle_incorrect_0   |   8 +
 17 files changed, 738 insertions(+), 310 deletions(-)
 create mode 100755 tests/shell/testcases/cache/0008_delete_by_handle_0
 create mode 100755 tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0

-- 
2.20.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux