netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH nf-next 0/7] get rid of struct nf_afinfo
Date: Sun, 10 Dec 2017 21:43:38 +0100	[thread overview]
Message-ID: <20171210204345.13292-1-pablo@netfilter.org> (raw)

This patch gets rid of the struct nf_afinfo abstraction.

This level of indirection that this structure adds is unnecessary in
most cases, and it can be replaced by direct calls given that we only
need to support IPv4 and IPv6.

Pablo Neira Ayuso (7):
  netfilter: remove checksum indirection in struct nf_afinfo
  netfilter: remove checksum_partial indirection in struct nf_afinfo
  netfilter: remove saveroute indirection in struct nf_afinfo
  netfilter: remove route indirection in struct nf_afinfo
  netfilter: remove reroute indirection in struct nf_afinfo
  netfilter: remove route_key_size field in struct nf_afinfo
  netfilter: core: remove struct nf_afinfo and its helper functions

 include/linux/netfilter.h               | 66 ++++-------------------------
 include/linux/netfilter_ipv4.h          | 18 ++++++++
 include/linux/netfilter_ipv6.h          | 49 +++++++++++++++++++++-
 net/bridge/netfilter/nf_tables_bridge.c | 51 ++---------------------
 net/ipv4/netfilter.c                    | 48 +++++-----------------
 net/ipv6/netfilter.c                    | 44 +++++---------------
 net/ipv6/netfilter/nft_fib_ipv6.c       |  9 +---
 net/netfilter/Makefile                  |  2 +-
 net/netfilter/core.c                    | 22 ----------
 net/netfilter/nf_conntrack_h323_main.c  | 23 ++++-------
 net/netfilter/nf_queue.c                | 28 ++++++++-----
 net/netfilter/nft_rt.c                  | 17 ++++----
 net/netfilter/utils.c                   | 73 +++++++++++++++++++++++++++++++++
 net/netfilter/xt_TCPMSS.c               |  6 +--
 net/netfilter/xt_addrtype.c             | 22 ++++------
 15 files changed, 217 insertions(+), 261 deletions(-)
 create mode 100644 net/netfilter/utils.c

-- 
2.11.0


             reply	other threads:[~2017-12-10 20:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10 20:43 Pablo Neira Ayuso [this message]
2017-12-10 20:43 ` [PATCH nf-next 1/7] netfilter: remove checksum indirection in struct nf_afinfo Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 2/7] netfilter: remove checksum_partial " Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 3/7] netfilter: remove saveroute " Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 4/7] netfilter: remove route " Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 5/7] netfilter: remove reroute " Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 6/7] netfilter: remove route_key_size field " Pablo Neira Ayuso
2017-12-10 20:43 ` [PATCH nf-next 7/7] netfilter: core: remove struct nf_afinfo and its helper functions 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=20171210204345.13292-1-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).