selftests: add script to stress-test nft packet path vs. control plane
authorFlorian Westphal <fw@strlen.de>
Wed, 31 Oct 2018 17:26:21 +0000 (18:26 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 Nov 2018 15:13:35 +0000 (16:13 +0100)
commit25d8bcedbf4329895dbaf9dd67baa6f18dad918c
treedb6bd9500e402dc888c30bb0548c735ac0c4b3e7
parent0fb39bbe43d4481fcf300d2b5822de60942fd189
selftests: add script to stress-test nft packet path vs. control plane

Start flood ping for each cpu while loading/flushing rulesets to make
sure we do not access already-free'd rules from nf_tables evaluation loop.

Also add this to TARGETS so 'make run_tests' in selftest dir runs it
automatically.

This would have caught the bug fixed in previous change
("netfilter: nf_tables: do not skip inactive chains during generation update")
sooner.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/Makefile
tools/testing/selftests/netfilter/Makefile [new file with mode: 0644]
tools/testing/selftests/netfilter/config [new file with mode: 0644]
tools/testing/selftests/netfilter/nft_trans_stress.sh [new file with mode: 0755]