From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH nf-next,RFC 00/10] Netfilter core updates
Date: Thu, 13 Oct 2016 14:11:53 +0200 [thread overview]
Message-ID: <1476360723-3291-1-git-send-email-pablo@netfilter.org> (raw)
Hi,
This is a quick RFC that has passed just very basic testing here. This
patchset achieves what it has been discussed during NetDev 1.2:
1) Deprecate NF_STOP, as this is only used by br_netfilter.
2) Remove threshold handling, this is also only used by br_netfilter
too.
3) Move NF_QUEUE handling away from the core. Adds a new nf_queue()
function that must be explicitly called to queue packets to userspace.
This function returns the verdict that is passed down to the core,
basically NF_DROP if queue is full, NF_ACCEPT if bypass is enabled
and NF_STOLEN if packet is succesfully enqueued to userspace.
4) Merge nf_iterate() into nf_hook_slow(), then inline the resulting
function and rename it to nf_hook_iterate().
This patchset also modifies the pktinfo and xt_action_param structures
(that keep context around while performing packet processing) to store
the netfilter hook state. This change was required by the new NF_QUEUE
handling. As side effect, according to pahole, these two now fit into
one single cacheline after this update.
Feedback welcome, thanks!
Pablo Neira Ayuso (10):
netfilter: get rid of useless debugging from core
netfilter: remove comments that predate rcu days
netfilter: bridge: kill NF_HOOK_THRESH() and state->tresh
netfilter: deprecate NF_STOP
netfilter: x_tables: move hook state into xt_action_param structure
netfilter: nf_tables: use hook state from xt_action_param structure
netfilter: use switch() to handle verdict cases from nf_hook_slow()
netfilter: move NF_QUEUE handling away from core
netfilter: merge nf_iterate() into nf_hook_slow()
netfilter: inline nf_hook_slow() and rename it to nf_hook_iterate()
include/linux/netfilter.h | 91 +++++++++++++++++-------------
include/linux/netfilter/x_tables.h | 48 ++++++++++++----
include/linux/netfilter_ingress.h | 4 +-
include/net/netfilter/nf_queue.h | 3 +
include/net/netfilter/nf_tables.h | 36 ++++++++----
include/uapi/linux/netfilter.h | 2 +-
net/bridge/br_netfilter_hooks.c | 18 +++---
net/bridge/netfilter/ebt_arpreply.c | 3 +-
net/bridge/netfilter/ebt_log.c | 11 ++--
net/bridge/netfilter/ebt_nflog.c | 6 +-
net/bridge/netfilter/ebt_redirect.c | 6 +-
net/bridge/netfilter/ebtable_broute.c | 2 +-
net/bridge/netfilter/ebtables.c | 6 +-
net/bridge/netfilter/nft_meta_bridge.c | 2 +-
net/bridge/netfilter/nft_reject_bridge.c | 30 ++++++----
net/ipv4/netfilter/arp_tables.c | 7 +--
net/ipv4/netfilter/ip_tables.c | 10 ++--
net/ipv4/netfilter/ipt_MASQUERADE.c | 3 +-
net/ipv4/netfilter/ipt_REJECT.c | 4 +-
net/ipv4/netfilter/ipt_SYNPROXY.c | 4 +-
net/ipv4/netfilter/ipt_rpfilter.c | 2 +-
net/ipv4/netfilter/nft_dup_ipv4.c | 2 +-
net/ipv4/netfilter/nft_masq_ipv4.c | 4 +-
net/ipv4/netfilter/nft_redir_ipv4.c | 3 +-
net/ipv4/netfilter/nft_reject_ipv4.c | 4 +-
net/ipv6/netfilter/ip6_tables.c | 10 ++--
net/ipv6/netfilter/ip6t_MASQUERADE.c | 2 +-
net/ipv6/netfilter/ip6t_REJECT.c | 23 +++++---
net/ipv6/netfilter/ip6t_SYNPROXY.c | 4 +-
net/ipv6/netfilter/ip6t_rpfilter.c | 3 +-
net/ipv6/netfilter/nft_dup_ipv6.c | 2 +-
net/ipv6/netfilter/nft_masq_ipv6.c | 3 +-
net/ipv6/netfilter/nft_redir_ipv6.c | 3 +-
net/ipv6/netfilter/nft_reject_ipv6.c | 6 +-
net/netfilter/core.c | 75 ------------------------
net/netfilter/ipset/ip_set_core.c | 6 +-
net/netfilter/ipset/ip_set_hash_netiface.c | 2 +-
net/netfilter/nf_dup_netdev.c | 2 +-
net/netfilter/nf_internals.h | 7 ---
net/netfilter/nf_queue.c | 72 +++++++++++++++++------
net/netfilter/nf_tables_api.c | 3 +-
net/netfilter/nf_tables_core.c | 13 ++---
net/netfilter/nf_tables_trace.c | 8 +--
net/netfilter/nft_log.c | 5 +-
net/netfilter/nft_lookup.c | 5 +-
net/netfilter/nft_meta.c | 6 +-
net/netfilter/nft_queue.c | 8 +--
net/netfilter/nft_reject_inet.c | 18 +++---
net/netfilter/xt_AUDIT.c | 10 ++--
net/netfilter/xt_LOG.c | 6 +-
net/netfilter/xt_NETMAP.c | 20 +++----
net/netfilter/xt_NFLOG.c | 6 +-
net/netfilter/xt_NFQUEUE.c | 33 +++++------
net/netfilter/xt_REDIRECT.c | 4 +-
net/netfilter/xt_TCPMSS.c | 4 +-
net/netfilter/xt_TEE.c | 4 +-
net/netfilter/xt_TPROXY.c | 16 +++---
net/netfilter/xt_addrtype.c | 10 ++--
net/netfilter/xt_cluster.c | 2 +-
net/netfilter/xt_connlimit.c | 8 +--
net/netfilter/xt_conntrack.c | 8 +--
net/netfilter/xt_devgroup.c | 4 +-
net/netfilter/xt_dscp.c | 2 +-
net/netfilter/xt_ipvs.c | 4 +-
net/netfilter/xt_nfacct.c | 2 +-
net/netfilter/xt_osf.c | 10 ++--
net/netfilter/xt_owner.c | 2 +-
net/netfilter/xt_pkttype.c | 4 +-
net/netfilter/xt_policy.c | 4 +-
net/netfilter/xt_recent.c | 10 ++--
net/netfilter/xt_set.c | 26 ++++-----
net/netfilter/xt_socket.c | 4 +-
net/sched/act_ipt.c | 13 +++--
net/sched/em_ipset.c | 18 +++---
74 files changed, 430 insertions(+), 401 deletions(-)
--
2.1.4
next reply other threads:[~2016-10-13 12:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 12:11 Pablo Neira Ayuso [this message]
2016-10-13 12:11 ` [PATCH nf-next,RFC 01/10] netfilter: get rid of useless debugging from core Pablo Neira Ayuso
2016-10-13 12:11 ` [PATCH nf-next,RFC 02/10] netfilter: remove comments that predate rcu days Pablo Neira Ayuso
2016-10-13 12:11 ` [PATCH nf-next,RFC 03/10] netfilter: bridge: kill NF_HOOK_THRESH() and state->tresh Pablo Neira Ayuso
2016-10-13 12:11 ` [PATCH nf-next,RFC 04/10] netfilter: deprecate NF_STOP Pablo Neira Ayuso
2016-10-13 12:11 ` [PATCH nf-next,RFC 05/10] netfilter: x_tables: move hook state into xt_action_param structure Pablo Neira Ayuso
2016-10-13 12:11 ` [PATCH nf-next,RFC 06/10] netfilter: nf_tables: use hook state from " Pablo Neira Ayuso
2016-10-13 12:12 ` [PATCH nf-next,RFC 07/10] netfilter: use switch() to handle verdict cases from nf_hook_slow() Pablo Neira Ayuso
2016-10-13 12:12 ` [PATCH nf-next,RFC 08/10] netfilter: move NF_QUEUE handling away from core Pablo Neira Ayuso
2016-10-13 12:12 ` [PATCH nf-next,RFC 09/10] netfilter: merge nf_iterate() into nf_hook_slow() Pablo Neira Ayuso
2016-10-13 12:12 ` [PATCH nf-next,RFC 10/10] netfilter: inline nf_hook_slow() and rename it to nf_hook_iterate() Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2016-10-13 12:02 [PATCH nf-next,RFC 00/10] Netfilter core updates Pablo Neira Ayuso
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=1476360723-3291-1-git-send-email-pablo@netfilter.org \
--to=pablo@netfilter.org \
--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).