bge: Improve TX performance on certain low end chips
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 29 Jun 2012 07:39:10 +0000 (15:39 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 29 Jun 2012 07:39:10 +0000 (15:39 +0800)
commitc728ae9889b31a4788919f323c05b5fefb504f7b
tree7d205aa79f89092058bf314c7f5091af3e941e05
parent8b1932b29007f7e4e315a0b33ce749e78f7489f4
bge: Improve TX performance on certain low end chips

These chips, e.g. BCM5761, only allow one outstanding DMA read operation,
so on TX path, mbuf chain should be packed to reduce number of DMA reads
from chip to improve performance.

hw.bgeX.force_defrag is added for PCI-E chips to enable this mbuf chain
packing.  It is not enabled by default.

Obtained-from: FreeBSD 200088
sys/dev/netif/bge/if_bge.c
sys/dev/netif/bge/if_bgereg.h