Skip to contentSkip to conversation

tests: shell: delete flowtable after flush chain

PATCH New Pablo Neira Ayuso 1 participant 1 message Sep 25, 2019 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: delete flowtable after flush chain

Returns EBUSY on buggy kernels.

---
 tests/shell/testcases/flowtable/0009deleteafterflush_0 | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100755 tests/shell/testcases/flowtable/0009deleteafterflush_0
tests/shell/testcases/flowtable/0009deleteafterflush_0 new file +9 -0
new file mode 100755
index 000000000000..2cda5639693c
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+$NFT add table x
+$NFT add chain x y
+$NFT add flowtable x f { hook ingress priority 0\; devices = { lo }\;}
+$NFT add rule x y flow add @f
+$NFT flush chain x y
+$NFT delete flowtable x f
Signature · 1 line
2.11.0