fcnal-test.sh loads br_netfilter to test bridge-into-VRF scenarios but
does not remove it at function exit (the second modprobe around line 4158
has no matching rmmod). Since tests run sequentially, any test running
after fcnal-test.sh inherits it.

Signed-off-by: Paolo Pisati <[email protected]>
---
 tools/testing/selftests/net/fcnal-test.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/net/fcnal-test.sh 
b/tools/testing/selftests/net/fcnal-test.sh
index 890c3f8e51bb..de7b6768882a 100755
--- a/tools/testing/selftests/net/fcnal-test.sh
+++ b/tools/testing/selftests/net/fcnal-test.sh
@@ -4176,6 +4176,8 @@ use_case_br()
 
        setup_cmd ip li del br0 2>/dev/null
        setup_cmd_nsb ip li del vlan100 2>/dev/null
+
+       rmmod br_netfilter 2>/dev/null
 }
 
 # VRF only.
-- 
2.43.0


Reply via email to