]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] e1000: disable polling before registering netdevice
authorAuke Kok <auke-jan.h.kok@intel.com>
Fri, 1 Jun 2007 17:22:39 +0000 (10:22 -0700)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:23 +0000 (10:02 +0200)
commite4adbfafa30ab794dddbfe2fa039c400b7d96189
tree03bc93ec9e9d2dddf15e1cd163dafa0709018f07
parented5582cc968044612c7ff79bb22cd2a20cd2bc8f
[PATCH] e1000: disable polling before registering netdevice

To assure the symmetry of poll enable/disable in up/down, we should
initialize the netdevice to be poll_disabled at load time. Doing
this after register_netdevice leaves us open to another race, so
lets move all the netif_* calls above register_netdevice so the
stack starts out how we expect it to be.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Doug Chapman <doug.chapman@hp.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/e1000/e1000_main.c