summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2013-06-14 16:25:55 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2013-06-14 16:25:55 +0000
commit3a893e30e80e3fc48c14003a48b8cd7c50ff7b1b (patch)
treebad76baba2c977fc694a2a55bfdf7448151b3baa /sys/dev/pci/if_ix.c
parent5ae7881e257069bcdd98cbfe4360fe596035551b (diff)
Correct interrupt moderation setting for 82598; tested on the CX4 version
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r--sys/dev/pci/if_ix.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index afa35e87944..6ce6b998b24 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.88 2013/06/09 18:09:55 deraadt Exp $ */
+/* $OpenBSD: if_ix.c,v 1.89 2013/06/14 16:25:54 mikeb Exp $ */
/******************************************************************************
@@ -805,12 +805,9 @@ ixgbe_init(void *arg)
}
/* Setup interrupt moderation */
- if (sc->hw.mac.type == ixgbe_mac_82598EB)
- itr = (8000000 / IXGBE_INTS_PER_SEC) & 0xff8;
- else {
- itr = (4000000 / IXGBE_INTS_PER_SEC) & 0xff8;
+ itr = (4000000 / IXGBE_INTS_PER_SEC) & 0xff8;
+ if (sc->hw.mac.type != ixgbe_mac_82598EB)
itr |= IXGBE_EITR_LLI_MOD | IXGBE_EITR_CNT_WDIS;
- }
IXGBE_WRITE_REG(&sc->hw, IXGBE_EITR(0), itr);
/* Config/Enable Link */