netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nf-next 0/3] netfilter: clusterip: don't register hook in all netns
Date: Thu, 22 Jul 2021 10:48:31 +0200	[thread overview]
Message-ID: <20210722084834.27027-1-fw@strlen.de> (raw)

This series stops ipt_CLUSTERIP from registering arp mangling hook
unconditionally.

Hook gets installed/removed from checkentry/destroy callbacks.

Before this, modprobe ipt_CLUSTERIP would add a hook in each netns.
While at it, also get rid of x_tables.h/xt storage space in struct net,
there is no need for this.

Florian Westphal (3):
  netfilter: ipt_CLUSTERIP: only add arp mangle hook when required
  netfilter: ipt_CLUSTERIP: use clusterip_net to store pernet warning
  netfilter: remove xt pernet data

 include/net/net_namespace.h        |  2 --
 include/net/netns/x_tables.h       | 12 -------
 net/ipv4/netfilter/ipt_CLUSTERIP.c | 56 ++++++++++++++++++++----------
 net/netfilter/xt_CT.c              | 11 ------
 4 files changed, 37 insertions(+), 44 deletions(-)
 delete mode 100644 include/net/netns/x_tables.h

-- 
2.31.1


             reply	other threads:[~2021-07-22  8:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  8:48 Florian Westphal [this message]
2021-07-22  8:48 ` [PATCH nf-next 1/3] netfilter: ipt_CLUSTERIP: only add arp mangle hook when required Florian Westphal
2021-07-22  8:48 ` [PATCH nf-next 2/3] netfilter: ipt_CLUSTERIP: use clusterip_net to store pernet warning Florian Westphal
2021-07-22  8:48 ` [PATCH nf-next 3/3] netfilter: remove xt pernet data Florian Westphal
2021-08-01  9:46 ` [PATCH nf-next 0/3] netfilter: clusterip: don't register hook in all netns 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=20210722084834.27027-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).