summaryrefslogtreecommitdiffstats
path: root/sys/dev/re
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-01-24 00:01:06 +0000
committeryongari <yongari@FreeBSD.org>2011-01-24 00:01:06 +0000
commitb815de73f3280b679f013108ab7367268233fba3 (patch)
treea372a6137e5417e06ec6b07ccf9f7d9aac136b20 /sys/dev/re
parent459496919dd0ecbfbbc886bb920d7c21962e583c (diff)
downloadFreeBSD-src-b815de73f3280b679f013108ab7367268233fba3.zip
FreeBSD-src-b815de73f3280b679f013108ab7367268233fba3.tar.gz
Apply TX interrupt moderation to all RTL810xE PCIe Fast Ethernet
controllers. Experimentation with RTL8102E, RTL8103E and RTL8105E showed dramatic decrement of TX completion interrupts under high TX load(e.g. from 147k interrupts/second to 10k interrupts/second) With this change, TX interrupt moderation is applied to all controllers except RTL8139C+.
Diffstat (limited to 'sys/dev/re')
-rw-r--r--sys/dev/re/if_re.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index b0537f3..9b9ded8 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -2943,20 +2943,8 @@ re_init_locked(struct rl_softc *sc)
/* Configure interrupt moderation. */
if (sc->rl_type == RL_8169) {
- switch (sc->rl_hwrev->rl_rev) {
- case RL_HWREV_8100E:
- case RL_HWREV_8101E:
- case RL_HWREV_8102E:
- case RL_HWREV_8102EL:
- case RL_HWREV_8102EL_SPIN1:
- case RL_HWREV_8103E:
- CSR_WRITE_2(sc, RL_INTRMOD, 0);
- break;
- default:
- /* Magic from vendor. */
- CSR_WRITE_2(sc, RL_INTRMOD, 0x5100);
- break;
- }
+ /* Magic from vendor. */
+ CSR_WRITE_2(sc, RL_INTRMOD, 0x5100);
}
#ifdef DEVICE_POLLING
OpenPOWER on IntegriCloud