kmod-macros: Don't unload kmod in VSWITCHD_STOP.
authorJoe Stringer <joestringer@nicira.com>
Wed, 29 Jul 2015 23:28:59 +0000 (16:28 -0700)
committerJoe Stringer <joestringer@nicira.com>
Fri, 7 Aug 2015 18:13:26 +0000 (11:13 -0700)
We already queue the removal of the kernel module in OVS_VSWITCHD_START,
via an ON_EXIT() call. That command is executed in both the success and
failure cases, so it is unnecessary to unload the kernel module in
OVS_VSWITCHD_STOP.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
tests/kmod-macros.at

index 902f8e1..c74d348 100644 (file)
@@ -32,5 +32,4 @@ m4_define([OVS_KMOD_VSWITCHD_STOP],
   [AT_CHECK([ovs-vsctl del-br br0])
    OVS_VSWITCHD_STOP([$1])
    AT_CHECK([:; $2])
-   AT_CHECK([modprobe -r openvswitch])
   ])