summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-01-08 18:08:15 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-01-08 18:08:15 +0000
commit41004fbb1d30a1805033f7f516ca23730b35b5ad (patch)
treef6f710b281080c61f34a2499e76a0dd92062ff9e /sys/dev/pci/if_sk.c
parent51530f229306bcc43d6b0bd028a3c3cccf17443b (diff)
Use a macro for the Tx timeout value.
OK deraadt@ kettenis@
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r--sys/dev/pci/if_sk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 31e606ab850..f499c8c5b0c 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.184 2016/04/13 10:34:32 mpi Exp $ */
+/* $OpenBSD: if_sk.c,v 1.185 2017/01/08 18:08:14 visa Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1532,7 +1532,7 @@ sk_start(struct ifnet *ifp)
CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START);
/* Set a timeout in case the chip goes out to lunch. */
- ifp->if_timer = 5;
+ ifp->if_timer = SK_TX_TIMEOUT;
}
}
@@ -1691,7 +1691,7 @@ sk_txeof(struct sk_if_softc *sc_if)
sc_if->sk_cdata.sk_tx_cnt--;
SK_INC(idx, SK_TX_RING_CNT);
}
- ifp->if_timer = sc_if->sk_cdata.sk_tx_cnt > 0 ? 5 : 0;
+ ifp->if_timer = sc_if->sk_cdata.sk_tx_cnt > 0 ? SK_TX_TIMEOUT : 0;
if (sc_if->sk_cdata.sk_tx_cnt < SK_TX_RING_CNT - 2)
ifq_clr_oactive(&ifp->if_snd);