svn commit: r281949 - in projects/ifnet/sys/dev: alc bge cadence fxp rl xl
Gleb Smirnoff
glebius at FreeBSD.org
Fri Apr 24 20:09:55 UTC 2015
Author: glebius
Date: Fri Apr 24 20:09:52 2015
New Revision: 281949
URL: https://svnweb.freebsd.org/changeset/base/281949
Log:
Those who use miibus(4) should set IFCAP_LINKSTATE.
Modified:
projects/ifnet/sys/dev/alc/if_alc.c
projects/ifnet/sys/dev/bge/if_bge.c
projects/ifnet/sys/dev/cadence/if_cgem.c
projects/ifnet/sys/dev/fxp/if_fxp.c
projects/ifnet/sys/dev/rl/if_rl.c
projects/ifnet/sys/dev/xl/if_xl.c
Modified: projects/ifnet/sys/dev/alc/if_alc.c
==============================================================================
--- projects/ifnet/sys/dev/alc/if_alc.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/alc/if_alc.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -1366,7 +1366,8 @@ alc_attach(device_t dev)
.ifat_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST,
.ifat_capabilities = IFCAP_TXCSUM | IFCAP_TSO4 |
IFCAP_VLAN_MTU | IFCAP_VLAN_HWTAGGING |
- IFCAP_VLAN_HWCSUM | IFCAP_VLAN_HWTSO,
+ IFCAP_VLAN_HWCSUM | IFCAP_VLAN_HWTSO |
+ IFCAP_LINKSTATE,
.ifat_hwassist = ALC_CSUM_FEATURES | CSUM_TSO,
};
struct alc_softc *sc;
Modified: projects/ifnet/sys/dev/bge/if_bge.c
==============================================================================
--- projects/ifnet/sys/dev/bge/if_bge.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/bge/if_bge.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -3866,6 +3866,7 @@ again:
*/
if (sc->bge_asf_mode & ASF_STACKUP)
BGE_SETBIT(sc, BGE_MODE_CTL, BGE_MODECTL_STACKUP);
+ ifat.ifat_capabilities |= IFCAP_LINKSTATE;
}
/*
Modified: projects/ifnet/sys/dev/cadence/if_cgem.c
==============================================================================
--- projects/ifnet/sys/dev/cadence/if_cgem.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/cadence/if_cgem.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -1605,7 +1605,7 @@ cgem_attach(device_t dev)
.ifat_drv = &cgem_ifdrv,
.ifat_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST,
.ifat_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
- IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM,
+ IFCAP_LINKSTATE | IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM,
};
struct cgem_softc *sc = device_get_softc(dev);
phandle_t node;
Modified: projects/ifnet/sys/dev/fxp/if_fxp.c
==============================================================================
--- projects/ifnet/sys/dev/fxp/if_fxp.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/fxp/if_fxp.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -842,6 +842,7 @@ fxp_attach(device_t dev)
device_printf(dev, "attaching PHYs failed\n");
goto fail;
}
+ ifat.ifat_capabilities |= IFCAP_LINKSTATE;
}
/*
Modified: projects/ifnet/sys/dev/rl/if_rl.c
==============================================================================
--- projects/ifnet/sys/dev/rl/if_rl.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/rl/if_rl.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -648,7 +648,7 @@ rl_attach(device_t dev)
.ifat_version = IF_ATTACH_VERSION,
.ifat_drv = &rl_ifdrv,
.ifat_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST,
- .ifat_capabilities = IFCAP_VLAN_MTU,
+ .ifat_capabilities = IFCAP_VLAN_MTU | IFCAP_LINKSTATE,
};
uint8_t eaddr[ETHER_ADDR_LEN];
uint16_t as[3];
Modified: projects/ifnet/sys/dev/xl/if_xl.c
==============================================================================
--- projects/ifnet/sys/dev/xl/if_xl.c Fri Apr 24 19:51:04 2015 (r281948)
+++ projects/ifnet/sys/dev/xl/if_xl.c Fri Apr 24 20:09:52 2015 (r281949)
@@ -1381,6 +1381,7 @@ xl_attach(device_t dev)
}
mii = device_get_softc(sc->xl_miibus);
ifat.ifat_baudrate = ifmedia_baudrate(mii->mii_media_active);
+ ifat.ifat_capabilities |= IFCAP_LINKSTATE;
goto media_done;
}
More information about the svn-src-projects
mailing list