]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:07 +0000 (09:45 -0600)
commitb578db3d02dd90374494c0680e7f2b0264e41478
tree3daf3179933e6a84dfc3e6f604da55ee9b2b3329
parent6bf342bac865fe897e0b991a87af6cb787021162
selftests: add script to stress-test nft packet path vs. control plane

BugLink: https://bugs.launchpad.net/bugs/1837161
[ Upstream commit 25d8bcedbf4329895dbaf9dd67baa6f18dad918c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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]