diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2007-09-19 03:50:26 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2007-09-19 03:50:26 +0000 |
commit | 9cfe0b067991d24e6bf4748c1eb4e7b119f49102 (patch) | |
tree | 0d69a6719a7c761ef0c1eaa85caf90b95695bdf8 /sys/dev/pci | |
parent | f545539f9b9eae3fceedafd2f4ec5549dd132a2c (diff) |
Use the proper baudrate for 10Gb hw now that it can fit into the buadrate
field.
ok claudio@ dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ixgb.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_xge.c | 4 |
2 files changed, 4 insertions, 4 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; |