Use hardware timer to simulate interrupt moderation. Old devices will no
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 9 Oct 2008 12:41:02 +0000 (12:41 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 9 Oct 2008 12:41:02 +0000 (12:41 +0000)
commitd4d77345f2aee7b8d109d6352d04f44fddaa5cd4
treee056fbf568914d9496431e3b95fccd0d0a2c63a3
parentb3465cda53509a482f1755483dc6648a3c87a505
Use hardware timer to simulate interrupt moderation.  Old devices will no
longer be livelocked when they are receiving on GigE line.  Newer devices
also gain well controlled interrupt rate.

If hardware supports interrupt moderation (e.g. 8168B, 8168C), you could
also use hardware based interrupt moderation, however, due to lack of
necessary information it does not work as reliably as simulated interrupt
moderation.  It is _not_ recommended currently.

By default, PCI-E devices' simulated interrupt moderation timer is set to
75us, while PCI devices' is set to 125us.
sys/dev/netif/re/if_re.c
sys/dev/netif/re/if_rereg.h
sys/dev/netif/re/if_revar.h