Don't use "timeout" mode for RX HC. The "collect" mode gives much simpler
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 19 Nov 2008 13:57:49 +0000 (13:57 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 19 Nov 2008 13:57:49 +0000 (13:57 +0000)
commit1af951abb88485eb41f7f89a9413c6dee177f400
tree02550c4b6fd3cf1b9d61b37e0a1abeb3a8483b6c
parent5b527db0a83182c576889a67555810d780759bb7
Don't use "timeout" mode for RX HC.  The "collect" mode gives much simpler
RX HC formula:
  if (packets > rx_bds || time since 1st packet > rx_ticks)
    generate interrupt

Adjust RX BDs to 128, and RX ticks to 125.  This gives 12000~14000/s interrupt
rate across all ranges of packet size; this also gives good RX performance:
- 1GB line rate for bulk data (TCP/UDP)
- Peak packet per second rate of the hardware

Thank Brad <brad@comstyle.com> very much!
sys/dev/netif/bce/if_bce.c