diff options
author | 2009-02-27 03:40:25 +0000 | |
---|---|---|
committer | 2009-02-27 03:40:25 +0000 | |
commit | cd446951cd6e9f18a3f197a32e9920e17f2c734d (patch) | |
tree | 9acbca9346992b352a5b4ee31236ad9819d6ca20 | |
parent | If acx_attach() fails, print the reason why it is failing. (diff) | |
download | wireguard-openbsd-cd446951cd6e9f18a3f197a32e9920e17f2c734d.tar.xz wireguard-openbsd-cd446951cd6e9f18a3f197a32e9920e17f2c734d.zip |
set interrupt moderation timer for tx; otherwise interrupt always for tx
ok deraadt@
-rw-r--r-- | sys/dev/pci/if_ale.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ale.c b/sys/dev/pci/if_ale.c index 4718bc4ff66..b1db3921c2e 100644 --- a/sys/dev/pci/if_ale.c +++ b/sys/dev/pci/if_ale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ale.c,v 1.2 2009/02/26 02:02:01 kevlo Exp $ */ +/* $OpenBSD: if_ale.c,v 1.3 2009/02/27 03:40:25 kevlo Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -1712,6 +1712,7 @@ ale_init(struct ifnet *ifp) /* Configure interrupt moderation timer. */ sc->ale_int_rx_mod = ALE_IM_RX_TIMER_DEFAULT; + sc->ale_int_tx_mod = ALE_IM_TX_TIMER_DEFAULT; reg = ALE_USECS(sc->ale_int_rx_mod) << IM_TIMER_RX_SHIFT; reg |= ALE_USECS(sc->ale_int_tx_mod) << IM_TIMER_TX_SHIFT; CSR_WRITE_4(sc, ALE_IM_TIMER, reg); |