Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102863706
D34449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34449.diff
View Options
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -1628,20 +1628,24 @@
sc->hw.phy.autoneg_advertised = ADVERTISE_1000_FULL;
break;
case IFM_100_TX:
- sc->hw.mac.autoneg = false;
- sc->hw.phy.autoneg_advertised = 0;
- if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX)
+ sc->hw.mac.autoneg = DO_AUTO_NEG;
+ if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX) {
+ sc->hw.phy.autoneg_advertised = ADVERTISE_100_FULL;
sc->hw.mac.forced_speed_duplex = ADVERTISE_100_FULL;
- else
+ } else {
+ sc->hw.phy.autoneg_advertised = ADVERTISE_100_HALF;
sc->hw.mac.forced_speed_duplex = ADVERTISE_100_HALF;
+ }
break;
case IFM_10_T:
- sc->hw.mac.autoneg = false;
- sc->hw.phy.autoneg_advertised = 0;
- if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX)
+ sc->hw.mac.autoneg = DO_AUTO_NEG;
+ if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX) {
+ sc->hw.phy.autoneg_advertised = ADVERTISE_10_FULL;
sc->hw.mac.forced_speed_duplex = ADVERTISE_10_FULL;
- else
+ } else {
+ sc->hw.phy.autoneg_advertised = ADVERTISE_10_HALF;
sc->hw.mac.forced_speed_duplex = ADVERTISE_10_HALF;
+ }
break;
default:
device_printf(sc->dev, "Unsupported media type\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 3:51 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14709934
Default Alt Text
D34449.diff (1 KB)
Attached To
Mode
D34449: Allow em(4) to particpate in auto-negotiation for fixed 100b or 10b configuration
Attached
Detach File
Event Timeline
Log In to Comment