Channel bonding kernel crash, workaround

From: Pfenniger Daniel (daniel.pfenniger@obs.unige.ch)
Date: Fri Mar 23 2001 - 03:12:34 EST


Hi,

Up to the latests kernels (-> 2.4.2) channel bonding crashes the kernel
(aille...) when turning it off (e.g. at reboot).

Here is a way to avoid this, which might help gourous to track the bug.
Suppose ifconfig says:
 
bond0 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
          inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:823297 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

eth0 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
          inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:487424 errors:0 dropped:0 overruns:0 frame:0
          TX packets:411649 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:19 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
          inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:487526 errors:0 dropped:0 overruns:0 frame:0
          TX packets:411648 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:18 Base address:0xb800

then the exact sequence:

ifconfig eth0 down
ifconfig eth1 down
ifconfig bond0 down
ifconfig eth0 down
ifconfig eth1 down

turns off bond0 without crash. This was tested on several computers with
all kernel 2.4.2, SMP Pentium II and tulip 21140 and/or 21142/3 NICs.

        Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 23 2001 - 21:00:20 EST