Skip to content

nftables: add feature probes for sctp and multistmt set support

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests: shell: skip adding catchall elements if unuspportedtests/shell/testcases/maps/vmap_timeout+6 -20 replies
2/3tests: shell: add feature probe for sets with more than one elementtests/shell/features/set_with_two_expressions.nft tests/shell/testcases/nft-f/0025empty_dynset_0 tests/shell/testcases/sets/0059set_update_multistmt_0 +2 more+23 -00 replies
3/3tests: shell: add feature probe for sctp chunk matchingtests/shell/features/sctp_chunks.nft tests/shell/testcases/sets/typeof_sets_0+23 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nftables: add feature probes for sctp and multistmt set support

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
Signature · 1 line
2.41.0