summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/if_ixgb.c4
-rw-r--r--sys/dev/pci/if_xge.c4
-rw-r--r--sys/net/if_media.h8
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pci/if_ixgb.c b/sys/dev/pci/if_ixgb.c
index 3af8f43ce9e..c8a1b62a53e 100644
--- a/sys/dev/pci/if_ixgb.c
+++ b/sys/dev/pci/if_ixgb.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_ixgb.c,v 1.36 2006/12/04 14:35:20 reyk Exp $ */
+/* $OpenBSD: if_ixgb.c,v 1.37 2007/09/19 03:50:24 brad Exp $ */
#include <dev/pci/if_ixgb.h>
@@ -838,7 +838,7 @@ ixgb_update_link_status(struct ixgb_softc *sc)
if (sc->hw.link_up) {
if (!sc->link_active) {
- ifp->if_baudrate = 1000000000;
+ ifp->if_baudrate = IF_Gbps(10);
sc->link_active = 1;
ifp->if_link_state = LINK_STATE_FULL_DUPLEX;
if_link_state_change(ifp);
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c
index c4404f7ad51..0ed947c61e0 100644
--- a/sys/dev/pci/if_xge.c
+++ b/sys/dev/pci/if_xge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xge.c,v 1.42 2007/05/28 23:39:07 ckuethe Exp $ */
+/* $OpenBSD: if_xge.c,v 1.43 2007/09/19 03:50:25 brad Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
@@ -631,7 +631,7 @@ xge_attach(struct device *parent, struct device *self, void *aux)
ifp = &sc->sc_arpcom.ac_if;
strlcpy(ifp->if_xname, XNAME, IFNAMSIZ);
memcpy(sc->sc_arpcom.ac_enaddr, enaddr, ETHER_ADDR_LEN);
- ifp->if_baudrate = 1000000000;
+ ifp->if_baudrate = IF_Gbps(10);
ifp->if_softc = sc;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_ioctl = xge_ioctl;
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index ca06b448a31..54a4d872712 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.25 2007/09/17 17:34:22 brad Exp $ */
+/* $OpenBSD: if_media.h,v 1.26 2007/09/19 03:50:25 brad Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
@@ -533,9 +533,9 @@ struct ifmedia_baudrate {
{ IFM_ETHER|IFM_1000_CX, IF_Mbps(1000) }, \
{ IFM_ETHER|IFM_1000_T, IF_Mbps(1000) }, \
{ IFM_ETHER|IFM_HPNA_1, IF_Mbps(1) }, \
- { IFM_ETHER|IFM_10G_LR, IF_Mbps(1000) }, \
- { IFM_ETHER|IFM_10G_SR, IF_Mbps(1000) }, \
- { IFM_ETHER|IFM_10G_CX4, IF_Mbps(1000) }, \
+ { IFM_ETHER|IFM_10G_LR, IF_Gbps(10) }, \
+ { IFM_ETHER|IFM_10G_SR, IF_Gbps(10) }, \
+ { IFM_ETHER|IFM_10G_CX4, IF_Gbps(10) }, \
\
{ IFM_FDDI|IFM_FDDI_SMF, IF_Mbps(100) }, \
{ IFM_FDDI|IFM_FDDI_MMF, IF_Mbps(100) }, \