netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 nf-next 0/3] netfilter: conntrack: removal prealloc support
@ 2017-04-20  7:54 Florian Westphal
  2017-04-20  7:54 ` [PATCH v2 nf-next 1/3] netfilter: conntrack: remove " Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Westphal @ 2017-04-20  7:54 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         |   98 +++++-----------------------
 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, 27 insertions(+), 96 deletions(-)


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

end of thread, other threads:[~2017-04-24  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-20  7:54 [PATCH v2 nf-next 0/3] netfilter: conntrack: removal prealloc support Florian Westphal
2017-04-20  7:54 ` [PATCH v2 nf-next 1/3] netfilter: conntrack: remove " Florian Westphal
2017-04-20  7:54 ` [PATCH v2 nf-next 2/3] netfilter: conntrack: mark extension structs as const Florian Westphal
2017-04-20  7:54 ` [PATCH v2 nf-next 3/3] netfilter: conntrack: handle initial extension alloc via krealloc Florian Westphal
2017-04-24  8:38 ` [PATCH v2 nf-next 0/3] netfilter: conntrack: removal prealloc support Pablo Neira Ayuso

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).