netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Subject: [PATCH nf-next 0/3] netfilter: conntrack: removal prealloc support
Date: Wed, 19 Apr 2017 23:44:35 +0200	[thread overview]
Message-ID: <20170419214438.20938-1-fw@strlen.de> (raw)

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

             reply	other threads:[~2017-04-19 21:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 21:44 Florian Westphal [this message]
2017-04-19 21:44 ` [PATCH nf-next 1/3] netfilter: conntrack: remove prealloc support 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170419214438.20938-1-fw@strlen.de \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).