svn commit: r206071 - stable/8/sys/dev/mii
Qing Li
qingli at FreeBSD.org
Fri Apr 2 05:15:28 UTC 2010
Author: qingli
Date: Fri Apr 2 05:15:27 2010
New Revision: 206071
URL: http://svn.freebsd.org/changeset/base/206071
Log:
MFC 205268
Set the device capabilities to include dynamic link-state for
those modern drivers.
Reviewed by: imp (and suggested by imp)
Modified:
stable/8/sys/dev/mii/mii.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/net/ (props changed)
Modified: stable/8/sys/dev/mii/mii.c
==============================================================================
--- stable/8/sys/dev/mii/mii.c Fri Apr 2 05:14:57 2010 (r206070)
+++ stable/8/sys/dev/mii/mii.c Fri Apr 2 05:15:27 2010 (r206071)
@@ -180,6 +180,8 @@ miibus_attach(device_t dev)
* XXX: EVIL HACK!
*/
mii->mii_ifp = *(struct ifnet**)device_get_softc(device_get_parent(dev));
+ mii->mii_ifp->if_capabilities |= IFCAP_LINKSTATE;
+ mii->mii_ifp->if_capenable |= IFCAP_LINKSTATE;
ivars = device_get_ivars(dev);
ifmedia_init(&mii->mii_media, IFM_IMASK, ivars->ifmedia_upd,
ivars->ifmedia_sts);
More information about the svn-src-stable-8
mailing list