* [PATCH] Fix for 802.3ad shutdown issue
@ 2004-11-02 0:39 Williams, Mitch A
2004-11-02 21:43 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Williams, Mitch A @ 2004-11-02 0:39 UTC (permalink / raw)
To: bonding-devel, fubar, ctindel; +Cc: linux-kernel
The patch below fixes a problem with shutting down 802.3ad bonds on the
2.6
kernel. Taking the interface down or removing the module causes a stack
dump if spinlock debugging is enabled. This patch was generated from
the
2.6.9 kernel.
This patch has been peer reviewed by our Linux software engineering
team,
and the fix has been verified by our test labs.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
diff -uprN -X dontdiff linux/drivers/net/bonding/bonding.h
linux-2.6.9/drivers/net/bonding/bonding.h
--- linux/drivers/net/bonding/bonding.h 2004-10-18 14:53:44.000000000
-0700
+++ linux-2.6.9/drivers/net/bonding/bonding.h 2004-10-29
14:01:14.000000000 -0700
@@ -36,8 +36,8 @@
#include "bond_3ad.h"
#include "bond_alb.h"
-#define DRV_VERSION "2.6.0"
-#define DRV_RELDATE "January 14, 2004"
+#define DRV_VERSION "2.6.1"
+#define DRV_RELDATE "October 29, 2004"
#define DRV_NAME "bonding"
#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver"
diff -uprN -X dontdiff linux/drivers/net/bonding/bond_main.c
linux-2.6.9/drivers/net/bonding/bond_main.c
--- linux/drivers/net/bonding/bond_main.c 2004-10-18
14:55:21.000000000 -0700
+++ linux-2.6.9/drivers/net/bonding/bond_main.c 2004-10-29
14:01:37.000000000 -0700
@@ -469,6 +469,13 @@
* * Add support for VLAN hardware acceleration capable slaves.
* * Add capability to tag self generated packets in ALB/TLB
modes.
* Set version to 2.6.0.
+ * 2004/10/29 - Mitch Williams <mitch.a.williams at intel dot com>
+ * - Fixed bug when unloading module while using 802.3ad. If
+ * spinlock debugging is turned on, this causes a stack dump.
+ * Solution is to move call to dev_remove_pack outside of the
+ * spinlock.
+ * Set version to 2.6.1.
+ *
*/
//#define BONDING_DEBUG 1
@@ -3566,15 +3573,15 @@ static int bond_close(struct net_device
{
struct bonding *bond = bond_dev->priv;
- write_lock_bh(&bond->lock);
-
- bond_mc_list_destroy(bond);
-
if (bond->params.mode == BOND_MODE_8023AD) {
/* Unregister the receive of LACPDUs */
bond_unregister_lacpdu(bond);
}
+ write_lock_bh(&bond->lock);
+
+ bond_mc_list_destroy(bond);
+
/* signal timers not to re-arm */
bond->kill_timers = 1;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Fix for 802.3ad shutdown issue
2004-11-02 0:39 [PATCH] Fix for 802.3ad shutdown issue Williams, Mitch A
@ 2004-11-02 21:43 ` Andrew Morton
2004-11-17 22:02 ` [Bonding-devel] " David Smithson
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2004-11-02 21:43 UTC (permalink / raw)
To: Williams, Mitch A; +Cc: bonding-devel, fubar, ctindel, linux-kernel
"Williams, Mitch A" <mitch.a.williams@intel.com> wrote:
>
> The patch below fixes a problem with shutting down 802.3ad bonds on the
> 2.6
> kernel.
I'll fix this patch up and add it to my tree so that it doesn't get lost.
Please fix your email client so that future patches are not wordwrapped,
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bonding-devel] Re: [PATCH] Fix for 802.3ad shutdown issue
2004-11-02 21:43 ` Andrew Morton
@ 2004-11-17 22:02 ` David Smithson
2004-11-17 23:52 ` Mitch Williams
0 siblings, 1 reply; 4+ messages in thread
From: David Smithson @ 2004-11-17 22:02 UTC (permalink / raw)
To: Andrew Morton
Cc: Williams, Mitch A, bonding-devel, fubar, ctindel, linux-kernel
Hi all. Where could I get my hands on a nicely-formatted version of
this patch? I'm looking to patch my FC3 2.6.9 kernel.
On Tue, 2004-11-02 at 13:43 -0800, Andrew Morton wrote:
> "Williams, Mitch A" <mitch.a.williams@intel.com> wrote:
> >
> > The patch below fixes a problem with shutting down 802.3ad bonds on the
> > 2.6
> > kernel.
>
> I'll fix this patch up and add it to my tree so that it doesn't get lost.
>
> Please fix your email client so that future patches are not wordwrapped,
> thanks.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Bonding-devel mailing list
> Bonding-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bonding-devel
--
David Smithson <david@customfilmeffects.com>
Custom Film Effects
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bonding-devel] Re: [PATCH] Fix for 802.3ad shutdown issue
2004-11-17 22:02 ` [Bonding-devel] " David Smithson
@ 2004-11-17 23:52 ` Mitch Williams
0 siblings, 0 replies; 4+ messages in thread
From: Mitch Williams @ 2004-11-17 23:52 UTC (permalink / raw)
To: David Smithson
Cc: Andrew Morton, Williams, Mitch A, bonding-devel, fubar, ctindel,
linux-kernel
On Wed, 17 Nov 2004, David Smithson wrote:
>
> Hi all. Where could I get my hands on a nicely-formatted version of
> this patch? I'm looking to patch my FC3 2.6.9 kernel.
>
Sorry for the mangling, David. Here's the patch, hopefully looking a
little better now that I've figured out how get Pine talking through our
corporate net.
-Mitch Williams
diff -uprN -X dontdiff linux/drivers/net/bonding/bonding.h linux-2.6.9/drivers/net/bonding/bonding.h
--- linux/drivers/net/bonding/bonding.h 2004-10-18 14:53:44.000000000 -0700
+++ linux-2.6.9/drivers/net/bonding/bonding.h 2004-10-29 14:01:14.000000000 -0700
@@ -36,8 +36,8 @@
#include "bond_3ad.h"
#include "bond_alb.h"
-#define DRV_VERSION "2.6.0"
-#define DRV_RELDATE "January 14, 2004"
+#define DRV_VERSION "2.6.1"
+#define DRV_RELDATE "October 29, 2004"
#define DRV_NAME "bonding"
#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver"
diff -uprN -X dontdiff linux/drivers/net/bonding/bond_main.c linux-2.6.9/drivers/net/bonding/bond_main.c
--- linux/drivers/net/bonding/bond_main.c 2004-10-18 14:55:21.000000000 -0700
+++ linux-2.6.9/drivers/net/bonding/bond_main.c 2004-10-29 14:01:37.000000000 -0700
@@ -469,6 +469,13 @@
* * Add support for VLAN hardware acceleration capable slaves.
* * Add capability to tag self generated packets in ALB/TLB modes.
* Set version to 2.6.0.
+ * 2004/10/29 - Mitch Williams <mitch.a.williams at intel dot com>
+ * - Fixed bug when unloading module while using 802.3ad. If
+ * spinlock debugging is turned on, this causes a stack dump.
+ * Solution is to move call to dev_remov_pack outside of the
+ * spinlock.
+ * Set version to 2.6.1.
+ *
*/
//#define BONDING_DEBUG 1
@@ -3566,15 +3573,15 @@ static int bond_close(struct net_device
{
struct bonding *bond = bond_dev->priv;
- write_lock_bh(&bond->lock);
-
- bond_mc_list_destroy(bond);
-
if (bond->params.mode == BOND_MODE_8023AD) {
/* Unregister the receive of LACPDUs */
bond_unregister_lacpdu(bond);
}
+ write_lock_bh(&bond->lock);
+
+ bond_mc_list_destroy(bond);
+
/* signal timers not to re-arm */
bond->kill_timers = 1;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-17 23:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-02 0:39 [PATCH] Fix for 802.3ad shutdown issue Williams, Mitch A
2004-11-02 21:43 ` Andrew Morton
2004-11-17 22:02 ` [Bonding-devel] " David Smithson
2004-11-17 23:52 ` Mitch Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox