]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: nft_concat_range: add test for reload with no element add/del
authorFlorian Westphal <fw@strlen.de>
Wed, 26 Jan 2022 11:54:54 +0000 (12:54 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Jan 2022 23:07:46 +0000 (00:07 +0100)
commit6c480cfe8a712ccf9e5dd4bd03d6bc6b2b1a1e0d
tree7498f0ac9c1d353d544f34cc8753f00fa271e8d8
parent6e811fe60fcadfd8211592497f3538652dc7dc06
selftests: nft_concat_range: add test for reload with no element add/del

Add a specific test for the reload issue fixed with
commit c377c62fffdd1c ("netfilter: nft_set_pipapo: allocate pcpu scratch maps on clone").

Add to set, then flush set content + restore without other add/remove in
the transaction.

On kernels before the fix, this test case fails:
  net,mac with reload    [FAIL]

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