summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_ste.c
diff options
context:
space:
mode:
authorgsoares <gsoares@openbsd.org>2012-11-23 18:40:29 +0000
committergsoares <gsoares@openbsd.org>2012-11-23 18:40:29 +0000
commit41dda92297b10751f75001b539197f6cadabcf47 (patch)
treea8b0e43094fb60afb2e581e684d07d5ca06ab9e8 /sys/dev/pci/if_ste.c
parentmake sure to always pass an array of struct pf_src_node pointers to (diff)
downloadwireguard-openbsd-41dda92297b10751f75001b539197f6cadabcf47.tar.xz
wireguard-openbsd-41dda92297b10751f75001b539197f6cadabcf47.zip
set ifp->if_baudrate with IF_Gbps() / IF_Mbps().
OK reyk@ sthen@
Diffstat (limited to 'sys/dev/pci/if_ste.c')
-rw-r--r--sys/dev/pci/if_ste.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index 12c2455d653..517cec9b1a1 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ste.c,v 1.48 2012/10/18 21:44:21 deraadt Exp $ */
+/* $OpenBSD: if_ste.c,v 1.49 2012/11/23 18:40:29 gsoares Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -931,7 +931,7 @@ ste_attach(struct device *parent, struct device *self, void *aux)
ifp->if_ioctl = ste_ioctl;
ifp->if_start = ste_start;
ifp->if_watchdog = ste_watchdog;
- ifp->if_baudrate = 10000000;
+ ifp->if_baudrate = IF_Mbps(10);
IFQ_SET_MAXLEN(&ifp->if_snd, STE_TX_LIST_CNT - 1);
IFQ_SET_READY(&ifp->if_snd);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);