diff options
author | Jesse Gross <jesse@nicira.com> | 2009-12-06 15:10:35 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2009-12-07 12:48:03 -0800 |
commit | c3e3d2a1e72f2fec8580e7974f809846788bc8ff (patch) | |
tree | 4fbab5a054859213bb11cf4cb3ab357492054972 /debian | |
parent | db12f2fc076e2d5bb5ae364e217ca2d84c8b0154 (diff) | |
download | openvswitch-c3e3d2a1e72f2fec8580e7974f809846788bc8ff.tar.gz |
gre: Add kernel GRE support.
This implements the kernel portion of GRE on Linux. It consists
of a backported module that provides the GRE capabilities of 2.6.32
plus bug fixes to kernels 2.6.18+.
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/openvswitch-switch.init | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index da4ec692d..dd4bb0596 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -261,6 +261,18 @@ case "$1" in exit 1 fi + echo -n "Loading ip_gre_mod: " + if grep -q '^ip_gre$' /proc/modules; then + modprobe -r ip_gre + fi + if grep -q '^ip_gre_mod$' /proc/modules; then + echo "already loaded, nothing to do." + elif modprobe ip_gre_mod; then + echo "success." + else + echo "could not find module." + fi + for netdev in $NETDEVS; do check_op "Removing IP address from $netdev" ifconfig $netdev 0.0.0.0 done @@ -386,6 +398,10 @@ case "$1" in echo "$NAME." check_op "Deleting datapath" ovs-dpctl del-dp of0 + echo -n "Unloading ip_gre module: " + if modprobe -r ip_gre_mod; then + echo "success." + fi check_op "Unloading kernel module" modprobe -r openvswitch_mod ;; force-stop) |