From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH 0/3] nftables: add feature probes for sctp and multistmt set support
Date: Thu, 21 Sep 2023 10:48:43 +0200 [thread overview]
Message-ID: <20230921084849.634-1-fw@strlen.de> (raw)
On some kernels tests can fail because a required feature is absent.
This can happen depending on kernel .config or because a required
feature was added in a later kernel release.
Patch 1 adds a missing check for catchall to the vmap timeout test so we
no longer try to add '*' keys.
Patch 2 adds a feature probe for multi-statement support in sets.
Add REQUIRES condition to all tests that do involve multistmt.
One of the test cases can be run partially, we only need to skip the
dump validation.
Patch 3 adds feature probing for sctp chunk matching in nft_exthdr
and the needed conditionals to the test.
Florian Westphal (3):
tests: shell: skip adding catchall elements if unuspported
tests: shell: add feature probe for sets with more than one element
tests: shell: add feature probe for sctp chunk matching
tests/shell/features/sctp_chunks.nft | 7 +++++
.../features/set_with_two_expressions.nft | 9 +++++++
tests/shell/testcases/maps/vmap_timeout | 8 ++++--
.../shell/testcases/nft-f/0025empty_dynset_0 | 8 ++++++
.../testcases/sets/0059set_update_multistmt_0 | 2 ++
.../shell/testcases/sets/0060set_multistmt_0 | 2 ++
.../shell/testcases/sets/0060set_multistmt_1 | 2 ++
tests/shell/testcases/sets/typeof_sets_0 | 26 ++++++++++++-------
8 files changed, 52 insertions(+), 12 deletions(-)
create mode 100644 tests/shell/features/sctp_chunks.nft
create mode 100644 tests/shell/features/set_with_two_expressions.nft
--
2.41.0
next reply other threads:[~2023-09-21 17:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-21 8:48 Florian Westphal [this message]
2023-09-21 8:48 ` [PATCH 1/3] tests: shell: skip adding catchall elements if unuspported Florian Westphal
2023-09-21 8:48 ` [PATCH 2/3] tests: shell: add feature probe for sets with more than one element Florian Westphal
2023-09-21 8:48 ` [PATCH 3/3] tests: shell: add feature probe for sctp chunk matching Florian Westphal
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=20230921084849.634-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).