From: Phil Sutter <phil@nwl.cc>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org, Florian Westphal <fw@strlen.de>,
Eric Garver <e@erig.me>
Subject: [nf-next PATCH v7 0/6] Dynamic hook interface binding part 1
Date: Thu, 9 Jan 2025 18:31:31 +0100 [thread overview]
Message-ID: <20250109173137.17954-1-phil@nwl.cc> (raw)
Changes since v6:
- Rebase onto "netfilter: nf_tables: imbalance in flowtable binding"
patch which is in nf-25-01-09 tag but missing in nf-next
- Drop patch 7 which removed __nft_unregister_flowtable_net_hooks(): The
function is no longer a duplicate of nft_netdev_unregister_hooks()
This series makes netdev hooks store the interface name spec they were
created for and establishes this stored name as the key identifier. The
previous one which is the hook's 'ops.dev' pointer is thereby freed to
vanish, so a vanishing netdev no longer has to drag the hook along with
it. (Patches 2-4)
Furthermore, it aligns behaviour of netdev-family chains with that of
flowtables in situations of vanishing interfaces. When previously a
chain losing its last interface was torn down and deleted, it may now
remain in place (albeit with no remaining interfaces). (Patch 5)
Patch 6 is a cleanup following patch 5, patch 1 is an independent
code simplification.
Phil Sutter (6):
netfilter: nf_tables: Flowtable hook's pf value never varies
netfilter: nf_tables: Store user-defined hook ifname
netfilter: nf_tables: Use stored ifname in netdev hook dumps
netfilter: nf_tables: Compare netdev hooks based on stored name
netfilter: nf_tables: Tolerate chains with no remaining hooks
netfilter: nf_tables: Simplify chain netdev notifier
include/net/netfilter/nf_tables.h | 4 +-
net/netfilter/nf_tables_api.c | 74 ++++++++-----------------------
net/netfilter/nft_chain_filter.c | 48 ++++++--------------
3 files changed, 33 insertions(+), 93 deletions(-)
--
2.47.1
next reply other threads:[~2025-01-09 17:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 17:31 Phil Sutter [this message]
2025-01-09 17:31 ` [nf-next PATCH v7 1/6] netfilter: nf_tables: Flowtable hook's pf value never varies Phil Sutter
2025-01-09 17:31 ` [nf-next PATCH v7 2/6] netfilter: nf_tables: Store user-defined hook ifname Phil Sutter
2025-01-09 17:31 ` [nf-next PATCH v7 3/6] netfilter: nf_tables: Use stored ifname in netdev hook dumps Phil Sutter
2025-01-09 17:31 ` [nf-next PATCH v7 4/6] netfilter: nf_tables: Compare netdev hooks based on stored name Phil Sutter
2025-01-09 17:31 ` [nf-next PATCH v7 5/6] netfilter: nf_tables: Tolerate chains with no remaining hooks Phil Sutter
2025-01-09 17:31 ` [nf-next PATCH v7 6/6] netfilter: nf_tables: Simplify chain netdev notifier Phil Sutter
2025-01-15 16:22 ` [nf-next PATCH v7 0/6] Dynamic hook interface binding part 1 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=20250109173137.17954-1-phil@nwl.cc \
--to=phil@nwl.cc \
--cc=e@erig.me \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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.