From: Davide Caratti <dcaratti@redhat.com>
To: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
"David S . Miller" <davem@davemloft.net>,
Florian Westphal <fw@strlen.de>,
Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>,
James Morris <jmorris@namei.org>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Patrick McHardy <kaber@trash.net>,
mikko.rapeli@iki.fi
Cc: coreteam@netfilter.org, netfilter-devel@vger.kernel.org
Subject: [PATCH nf-next 0/4] netfilter: built-in conntrack support for DCCP, SCTP, UDPlite
Date: Thu, 10 Nov 2016 15:46:24 +0100 [thread overview]
Message-ID: <cover.1478784737.git.dcaratti@redhat.com> (raw)
When netfilter needs to match traffic made by one of the above protocols,
layer-4 connection tracking functionality will not be available, unless the
user explicly loads it in the kernel (e.g. "modprobe nf_conntrack_proto_sctp")
or modifies the default kernel configuration and rebuilds.
In order to remove such limitation, this series converts
CONFIG_NF_CT_PROTO_{DCCP,SCTP,UDPLITE} from tristate to boolean: in case
conntrack support for these protocols is enabled in the kernel configuration,
it will be built into nf_conntrack.ko.
Patch 1/4 fixes nf_conntrack_tuple_common.h to avoid compile-time errors
when moving module per-net private data.
Patches 2/4 3,4 and 4/4 remove loadable kernel module support from DCCP,
SCTP and UDPlite respectively.
footprint test (nf-next.git, x86_64, RHEL7)
Patches 2/4 to 4/4 in this series have been individually tested on a
nf-next.git kernel with standard RHEL7 configuration on x86_64 architecture,
recording the unstripped binary size after module clean/rebuild:
$ ls -l net/netfilter/nf_conntrack{,_proto_{dccp,sctp,udplite}}.ko \
net/ipv4/netfilter/nf_conntrack_ipv4.ko \
net/ipv6/netfilter/nf_conntrack_ipv6.ko
(builtin)|| dccp | sctp | udplite | ipv4 | ipv6 | nf_conntrack
---------++--------+--------+-----------+--------+--------+--------------
none || 469140 | 498243 | 432538 | 828755 | 828676 | 6141434
DCCP || - | 498987 | 432746 | 830566 | 829935 | 6533526
SCTP || 469276 | - | 432690 | 829254 | 829175 | 6547872
UDPlite || 469484 | 498587 | - | 829649 | 829362 | 6498204
all || - | - | - | 831999 | 831104 | 7298358
Davide Caratti (4):
netfilter: nf_conntrack_tuple_common.h: fix #include
netfilter: conntrack: built-in support for DCCP
netfilter: conntrack: built-in support for SCTP
netfilter: conntrack: built-in support for UDPlite
include/linux/netfilter/nf_conntrack_dccp.h | 2 +-
include/net/netfilter/ipv4/nf_conntrack_ipv4.h | 9 +++
include/net/netfilter/ipv6/nf_conntrack_ipv6.h | 9 +++
include/net/netns/conntrack.h | 43 ++++++++++++
.../linux/netfilter/nf_conntrack_tuple_common.h | 2 +-
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 9 +++
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 9 +++
net/netfilter/Kconfig | 18 ++---
net/netfilter/Makefile | 7 +-
net/netfilter/nf_conntrack_proto_dccp.c | 79 +++-------------------
net/netfilter/nf_conntrack_proto_sctp.c | 76 +++------------------
net/netfilter/nf_conntrack_proto_udplite.c | 79 +++-------------------
12 files changed, 121 insertions(+), 221 deletions(-)
--
2.7.4
next reply other threads:[~2016-11-10 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-10 14:46 Davide Caratti [this message]
2016-11-10 14:46 ` [PATCH nf-next 1/4] netfilter: nf_conntrack_tuple_common.h: fix #include Davide Caratti
2016-11-11 10:07 ` Mikko Rapeli
2016-11-11 12:02 ` Davide Caratti
2016-11-14 14:01 ` Davide Caratti
2016-11-14 17:59 ` mikko.rapeli
2016-11-10 14:46 ` [PATCH nf-next 2/4] netfilter: conntrack: built-in support for DCCP Davide Caratti
2016-11-10 14:46 ` [PATCH nf-next 3/4] netfilter: conntrack: built-in support for SCTP Davide Caratti
2016-11-10 14:46 ` [PATCH nf-next 4/4] netfilter: conntrack: built-in support for UDPlite Davide Caratti
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=cover.1478784737.git.dcaratti@redhat.com \
--to=dcaratti@redhat.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=kuznet@ms2.inr.ac.ru \
--cc=mikko.rapeli@iki.fi \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=yoshfuji@linux-ipv6.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.