From 662c098cadab24459ec119b6d5bc68041ad29e99 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 14 Nov 2023 17:07:42 +0100 Subject: tests: shell: skip if kernel does not support flowtable with no devices Originally, flowtables required devices in place to work, this was later relaxed to allow flowtable with no initial devices, see 05abe4456fa3 ("netfilter: nf_tables: allow to register flowtable with no devices"). Signed-off-by: Pablo Neira Ayuso --- tests/shell/features/flowtable_no_devices.nft | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/features/flowtable_no_devices.nft (limited to 'tests/shell/features/flowtable_no_devices.nft') diff --git a/tests/shell/features/flowtable_no_devices.nft b/tests/shell/features/flowtable_no_devices.nft new file mode 100755 index 00000000..30dd3db8 --- /dev/null +++ b/tests/shell/features/flowtable_no_devices.nft @@ -0,0 +1,8 @@ +# 05abe4456fa3 ("netfilter: nf_tables: allow to register flowtable with no devices") +# v5.8-rc1~165^2~27^2~1 +table ip filter2 { + flowtable main_ft2 { + hook ingress priority filter + counter + } +} -- cgit v1.2.3