From 9cfe0b067991d24e6bf4748c1eb4e7b119f49102 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 19 Sep 2007 03:50:26 +0000 Subject: Use the proper baudrate for 10Gb hw now that it can fit into the buadrate field. ok claudio@ dlg@ --- sys/dev/pci/if_ixgb.c | 4 ++-- sys/dev/pci/if_xge.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/pci') 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 @@ -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; -- cgit v1.2.3