- Add interrupt moderation support by only using TIMER intr; IM is not
commitd7f5fa098847e43f750ebe44cbe7713493127603
authorsephe <sephe>
Mon, 10 Sep 2007 14:08:28 +0000 (10 14:08 +0000)
committersephe <sephe>
Mon, 10 Sep 2007 14:08:28 +0000 (10 14:08 +0000)
treed8062d2f952c07ffc4ee887cca472984017d1d69
parent7ff01749d56a1dd618fd05df2cf783a5ff5e6bb7
- Add interrupt moderation support by only using TIMER intr; IM is not
  possible when RX or TX intr is enabled.  With this change, my nfe(4)
  can TX at line speed finally (mtu 1500).
- Add per iface sysctl node hw.nfeX.imtime to enable, disable and set
  interrupt moderation time.  Set it to -1 will disable IM; 64-128
  seems to be a reasonable value range.  This sysctl variable is _not_
  on by default, and can be tuned when the iface is running.
- Nuke global sysctl nodes, make them per iface.

# We may consider using TIMER intr under all situations, but with larger
# imtime when IM is not enabled, since for certain type of nfe(4), TX
# interrupts may never come.
sys/dev/netif/nfe/if_nfe.c
sys/dev/netif/nfe/if_nfereg.h
sys/dev/netif/nfe/if_nfevar.h