[Top] [All Lists]

Re: [PATCH 2.6.12-rc2] bonding: partially back out dev_set_mac_address

To: Jay Vosburgh <fubar@xxxxxxxxxx>
Subject: Re: [PATCH 2.6.12-rc2] bonding: partially back out dev_set_mac_address
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 9 Apr 2005 10:31:08 +1000
Cc: davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, jgarzik@xxxxxxxxx
In-reply-to: <20050409002137.GA21726@xxxxxxxxxxxxxxxxxxx>
References: <20050408221629.GA21125@xxxxxxxxxxxxxxxxxxx> <200504082356.j38Ntr7k010144@xxxxxxxxxxxxxxxxxxxxxx> <20050409002137.GA21726@xxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
On Sat, Apr 09, 2005 at 10:21:37AM +1000, herbert wrote:
> Personally I'd rather we aimed for a proper solution that will be in
> 2.6.13 since the current symptom is only a warning which doesn't
> really hurt anyone.

Actually there is another reason why we need to move the MAC setting
to process context rather than simply patching up the rtnetlink code.

The driver implementation for set_mac_address may well want to sleep
since it needs to communicate with the hardware.

In fact I just looked at some USB net drivers and the very first one
(zd1201) wants to sleep in there badly :)

So if you want a quick and dirty fix, why not make bonding call
dev_set_mac_address from a work queue?

Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

<Prev in Thread] Current Thread [Next in Thread>