]> git.proxmox.com Git - ovs.git/commitdiff
Revert "Revert "utilities/ovs-ctl: Force removal of ip_gre/gre""
authorGreg Rose <roseg@vmware.com>
Tue, 11 Sep 2018 13:52:35 +0000 (06:52 -0700)
committerJustin Pettit <jpettit@ovn.org>
Fri, 14 Sep 2018 17:52:02 +0000 (10:52 -0700)
This reverts commit a94f9524dbc11c78c83d1a49959497f5e73bf949.

This is a revert of a previously reverted commit
2bdd1f3d96a86bea6bdb8788f23ec7dd99b289e3.

When we originally added commit 2bdd1f3d96 it was part of an
effort to work around gre module conflicts found while enabling
the ERSPAN feature. Testing at the time did not show any benefit
so in commit a94f9524db we reverted it.  However, further
developments showed that in some corner cases it did have a
benefit and it did not do any harm so we reverted the original
revert to restore the code.

Signed-off-by: Greg Rose <roseg@vmware.com>
Tested-by: Yifeng Sun <pkusunyifeng@gmail.com>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
utilities/ovs-lib.in

index 090a14434283ebc8a1d951986193fad080b0227e..f6b539317a3067948ca7bec4aada86fa33bb5333 100644 (file)
@@ -627,6 +627,14 @@ force_reload_kmod () {
         action "Removing datapath: $dp" ovs-dpctl del-dp "$dp"
     done
 
+    if test -e /sys/module/ip_gre; then
+        action "Forcing removal of ip_gre module" rmmod ip_gre
+    fi
+
+    if test -e /sys/module/gre; then
+        action "Forcing removal of gre module" rmmod gre
+    fi
+
     ovs_kmod_ctl remove
 
     # Start vswitchd by asking it to wait till flow restore is finished.