|
|
Subject: em(4) diff
From: Mark Kettenis
Date: 5/6/2007 7:55:31 PM
This diff fixes em(4) watchdog timeouts that some people are seeing.
This diff needs to be tested on all em(4) variants, so if you rely on
th em(4) driver, please give this a spin on your system, and mail me
the relevant lines of your dmesg if you've established that a kernel
with this diff can still handle your network traffic.
Mark
Index: if_em.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.167
diff -u -p -r1.167 if_em.c
--- if_em.c 16 Mar 2007 00:07:36 -0000 1.167
+++ if_em.c 6 May 2007 19:34:59 -0000
@@ -502,8 +502,7 @@ em_ioctl(struct ifnet *ifp, u_long comma
IOCTL_DEBUGOUT("ioctl rcv'd: SIOCSIFADDR (Set Interface "
"Addr)");
ifp->if_flags |= IFF_UP;
- if (!(ifp->if_flags & IFF_RUNNING))
- em_init(sc);
+ em_init(sc);
#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->interface_data, ifa);
|