- Add interrupt moderation support by only using TIMER intr; IM is not
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 10 Sep 2007 14:08:28 +0000 (14:08 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 10 Sep 2007 14:08:28 +0000 (14:08 +0000)
commitec9403d022f469907c6548b38ab118bb7f510ada
tree823820bac06d62d866b896683dcfb72a0051e757
parent6e2b822903071bd288604eeda3f73aceb2e32e38
- 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