mxge: Use chip private input hash instead of standard RSS input hash
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 26 Oct 2013 12:38:01 +0000 (20:38 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 26 Oct 2013 12:38:01 +0000 (20:38 +0800)
commit8433e5f5d8c2f12ecfd7e7e3fb517045abd0ff91
treeaf1f61989c3735ecdfebbf6f9ad9514610812e3a
parentaca8f373d2bcbcc84678e8e4515c4e212036dcf3
mxge: Use chip private input hash instead of standard RSS input hash

This restores RX performance when multiple RX queues are enable.

If the stardard RSS input hash is used, the chip's firmware will compute
the RSS hash (*); this kinda explains why using standard RSS input hash
hurts RX performance greatly.

Sysctl hw.mxgeX.use_rss is added to turn on standard RSS input hash.
It is disabled by default.  It is also controlled globally by tunable
hw.mxge.use_rss.

(*) Thank Andrew Gallatin <gallatin@FreeBSD.org> for giving the hint.
sys/dev/netif/mxge/if_mxge.c
sys/dev/netif/mxge/if_mxge_var.h