]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 10 Feb 2022 14:31:37 +0000 (15:31 +0100)
commitb115c2defe3ab4f9d9aee454d28c38d369d246e8
tree90e65a8719aab92341e25a1cd30d82d247fb9620
parent0a2c53d04dd8e58b22d0aae850b6c4bcc758a9ab
selftests: nft_concat_range: add test for reload with no element add/del

BugLink: https://bugs.launchpad.net/bugs/1960516
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/netfilter/nft_concat_range.sh