summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_txp.c
diff options
context:
space:
mode:
authorGleydson Soares <gsoares@cvs.openbsd.org>2012-11-23 18:40:31 +0000
committerGleydson Soares <gsoares@cvs.openbsd.org>2012-11-23 18:40:31 +0000
commit91744dfe061ac176c6e20642f95130d5cb143a0b (patch)
treea70f6a6ea2e490cc47932b01700df9759e7bfe67 /sys/dev/pci/if_txp.c
parent92e8ca9321f940df5b6639ce14fdceb2b772609f (diff)
set ifp->if_baudrate with IF_Gbps() / IF_Mbps().
OK reyk@ sthen@
Diffstat (limited to 'sys/dev/pci/if_txp.c')
-rw-r--r--sys/dev/pci/if_txp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index 579dd5ddd2b..11e58db1641 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.104 2011/04/05 18:01:21 henning Exp $ */
+/* $OpenBSD: if_txp.c,v 1.105 2012/11/23 18:40:30 gsoares Exp $ */
/*
* Copyright (c) 2001
@@ -225,7 +225,7 @@ txp_attachhook(void *vsc)
ifp->if_ioctl = txp_ioctl;
ifp->if_start = txp_start;
ifp->if_watchdog = txp_watchdog;
- ifp->if_baudrate = 10000000;
+ ifp->if_baudrate = IF_Mbps(10);
IFQ_SET_MAXLEN(&ifp->if_snd, TX_ENTRIES);
IFQ_SET_READY(&ifp->if_snd);
ifp->if_capabilities = 0;