Skip to content

RFC conntrack event caching changes

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am 20090330132330.14337.4705.stgit@Decadence

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: ecache: replace notify chain by function pointerinclude/net/netfilter/nf_conntrack_ecache.h net/netfilter/nf_conntrack_ecache.c net/netfilter/nf_conntrack_netlink.c+154 -580 replies
2/3conntrack: ecache: move event cache to conntrack extension infrastructureinclude/net/netfilter/nf_conntrack_ecache.h include/net/netfilter/nf_conntrack_extend.h include/net/netns/conntrack.h +6 more+207 -1210 replies
3/3ctnetlink: optional reliable conntrack event deliveryinclude/net/netfilter/nf_conntrack.h include/net/netfilter/nf_conntrack_core.h include/net/netfilter/nf_conntrack_ecache.h +6 more+175 -561 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] [RFC] conntrack event caching changes

Hi Patrick,

This is another round of the event caching rework. I'm not including patch from 1/5 to 3/5 that I previously sent that are required by these patches but that are not relevant for the RFC I think.

Basically, this rework contains:

a) The replacement for the use of the notify chain by a single function pointer.
b) The replacement of the per-cpu event cache by a per-conntrack event cache.
c) The addition of optional reliable conntrack event delivery containing the recent comments during one of our discussions.

Thanks!

---

Pablo Neira Ayuso (3):
ctnetlink: optional reliable conntrack event delivery
conntrack: ecache: move event cache to conntrack extension infrastructure
netfilter: ecache: replace notify chain by function pointer

 include/net/netfilter/nf_conntrack.h        |    2 
 include/net/netfilter/nf_conntrack_core.h   |    6 -
 include/net/netfilter/nf_conntrack_ecache.h |  163 +++++++++++----
 include/net/netfilter/nf_conntrack_extend.h |    2 
 include/net/netfilter/nf_conntrack_helper.h |    2 
 include/net/netns/conntrack.h               |    7 -
 net/netfilter/nf_conntrack_core.c           |  124 ++++++++----
 net/netfilter/nf_conntrack_ecache.c         |  288 ++++++++++++++++++++-------
 net/netfilter/nf_conntrack_ftp.c            |    4 
 net/netfilter/nf_conntrack_helper.c         |   15 +
 net/netfilter/nf_conntrack_netlink.c        |  103 +++++-----
 net/netfilter/nf_conntrack_proto_sctp.c     |    2 
 net/netfilter/nf_conntrack_proto_tcp.c      |    7 -
 13 files changed, 513 insertions(+), 212 deletions(-)
Signature · 1 line
3.3.3