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+.
This commit is contained in:
Pyun YongHyeon 2011-01-24 00:01:06 +00:00
parent f7a77f6fd3
commit 7be4de2de7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217766

View File

@ -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