netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/3] netfilter: conntrack: removal prealloc support
@ 2017-04-19 21:44 Florian Westphal
  2017-04-19 21:44 ` [PATCH nf-next 1/3] netfilter: conntrack: remove " Florian Westphal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Florian Westphal @ 2017-04-19 21:44 UTC (permalink / raw)
  To: netfilter-devel

The prealloc flag is only used for the nat extension (and
that extension is not even needed anymore in some cases).

This removes prealloc, marks all extension structs as const and then
also simplifies the initial extension allocation.

Currently (default settings), each conntrack will use 64 bytes of the initial
extension allocation.

 include/net/netfilter/nf_conntrack_extend.h |   10 --
 net/netfilter/nf_conntrack_acct.c           |    2 
 net/netfilter/nf_conntrack_ecache.c         |    2 
 net/netfilter/nf_conntrack_extend.c         |  104 +++++-----------------------
 net/netfilter/nf_conntrack_helper.c         |    2 
 net/netfilter/nf_conntrack_labels.c         |    2 
 net/netfilter/nf_conntrack_seqadj.c         |    2 
 net/netfilter/nf_conntrack_timeout.c        |    2 
 net/netfilter/nf_conntrack_timestamp.c      |    2 
 net/netfilter/nf_nat_core.c                 |    1 
 10 files changed, 30 insertions(+), 99 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-20  3:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-19 21:44 [PATCH nf-next 0/3] netfilter: conntrack: removal prealloc support Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 1/3] netfilter: conntrack: remove " Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 2/3] netfilter: conntrack: mark extension structs as const Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 3/3] netfilter: conntrack: handle initial extension alloc via krealloc Florian Westphal
2017-04-20  3:40   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).