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 iptables 0/7] support for dynamic register allocation
Date: Sun, 24 Apr 2022 23:56:06 +0200	[thread overview]
Message-ID: <20220424215613.106165-1-pablo@netfilter.org> (raw)

Hi,

This patchset is composed of:

- Fix for bitwise expression to not assume NFT_REG_1 as destination
  register.

- Add native meta mark match support.

- Dynamic register allocation to leverage infrastructure available
  since Linux kernel 5.18-rc. See patch 7/7 for details.

Pablo Neira Ayuso (7):
  nft-shared: update context register for bitwise expression
  nft: pass struct nft_xt_ctx to parse_meta()
  nft: native mark matching support
  nft: pass handle to helper functions to build netlink payload
  nft: prepare for dynamic register allocation
  nft: split gen_payload() to allocate register and initialize expression
  nft: support for dynamic register allocation

 iptables/Makefile.am                          |   2 +-
 iptables/nft-arp.c                            |  42 ++--
 iptables/nft-bridge.c                         |  42 ++--
 iptables/nft-ipv4.c                           |  22 +-
 iptables/nft-ipv6.c                           |  12 +-
 iptables/nft-regs.c                           | 191 ++++++++++++++++++
 iptables/nft-regs.h                           |   9 +
 iptables/nft-shared.c                         | 162 ++++++++++-----
 iptables/nft-shared.h                         |  32 +--
 iptables/nft.c                                | 125 ++++++++----
 iptables/nft.h                                |  25 +++
 .../nft-only/0009-needless-bitwise_0          | 180 ++++++++---------
 12 files changed, 599 insertions(+), 245 deletions(-)
 create mode 100644 iptables/nft-regs.c
 create mode 100644 iptables/nft-regs.h

-- 
2.30.2


             reply	other threads:[~2022-04-24 21:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-24 21:56 Pablo Neira Ayuso [this message]
2022-04-24 21:56 ` [PATCH iptables 1/7] nft-shared: update context register for bitwise expression Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 2/7] nft: pass struct nft_xt_ctx to parse_meta() Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 3/7] nft: native mark matching support Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 4/7] nft: pass handle to helper functions to build netlink payload Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 5/7] nft: prepare for dynamic register allocation Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 6/7] nft: split gen_payload() to allocate register and initialize expression Pablo Neira Ayuso
2022-04-24 21:56 ` [PATCH iptables 7/7] nft: support for dynamic register allocation Pablo Neira Ayuso
2022-04-26 16:06   ` Phil Sutter
2022-04-26 19:32     ` Pablo Neira Ayuso
2022-04-27 16:23     ` Pablo Neira Ayuso
2022-04-28 10:07       ` Phil Sutter

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=20220424215613.106165-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).