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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 17:34:14 +0000 (18:34 +0100)
commitb84753200e7971774243a55f28769e84bef4caf3
tree478442414f4169f20a3dc34aa37972fc83ff9327
parent7c0ee51fe998567f005b7f949a6e7f0f8320e0bb
selftests: nft_concat_range: add test for reload with no element add/del

commit eda0cf1202acf1ef47f93d8f92d4839213431424 upstream.

Add a specific test for the reload issue fixed with
commit 23c54263efd7cb ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/netfilter/nft_concat_range.sh