]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: netfilter: nft_concat_range.sh: add check for double-create bug
authorFlorian Westphal <fw@strlen.de>
Tue, 9 Sep 2025 23:39:48 +0000 (01:39 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 24 Sep 2025 09:50:28 +0000 (11:50 +0200)
commit94bd247bc25b7f1560f96e9c912db3ec1fc878ea
tree386ab41d665d5b5f5831b155f5bb5934f0c677b3
parent5823699a11cf3c05d751b473c66920d2d3cac0a5
selftests: netfilter: nft_concat_range.sh: add check for double-create bug

Add a test case for bug resolved with:
'netfilter: nft_set_pipapo_avx2: fix skip of expired entries'.

It passes on nf.git (it uses the generic/C version for insertion
duplicate check) but fails on unpatched nf-next if AVX2 is supported:

  cannot create same element twice      0s                        [FAIL]
Could create element twice in same transaction
table inet filter { # handle 8
[..]
  elements = { 1.2.3.4 . 1.2.4.1 counter packets 0 bytes 0,
               1.2.4.1 . 1.2.3.4 counter packets 0 bytes 0,
               1.2.3.4 . 1.2.4.1 counter packets 0 bytes 0,
               1.2.4.1 . 1.2.3.4 counter packets 0 bytes 0 }

Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/net/netfilter/nft_concat_range.sh