From 91744dfe061ac176c6e20642f95130d5cb143a0b Mon Sep 17 00:00:00 2001 From: Gleydson Soares Date: Fri, 23 Nov 2012 18:40:31 +0000 Subject: set ifp->if_baudrate with IF_Gbps() / IF_Mbps(). OK reyk@ sthen@ --- sys/dev/pci/if_txp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_txp.c') 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; -- cgit v1.2.3