git: mxge: Implement MSI-X support; multiple RX rings could be enabled

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Oct 25 21:51:50 PDT 2013


commit e6c7b7530e64a9b215d3995859b175b99da8d487
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Oct 23 21:25:37 2013 +0800

    mxge: Implement MSI-X support; multiple RX rings could be enabled
    
    One thing need to note is the interrupt moderation when MSI-X is
    enabled.  On the PCIE-8AL-C, it looks like that the interrupt rate
    set to the chip means total interrupt rate, NOT per MSI-X vector
    interrupt rate: e.g. Given the interrupt rate is set too 8000 and 8
    MSI-X vectors are allocated.  If two MSI-X vectors are active, then
    the interrupt rate for each MSI-X vector will be ~4000.  If all
    MSI-X vectors are active, then the interrupt rate for each MSI-X
    vector will be ~1000.  This is kind of interrupt moderation for
    MSI-X is very unfriendly ...
    
    MSI-X is not enabled by default yet.  You could set tunable
    hw.mxge.num_slices or hw.mxgeX.num_slices to 0 or any value greater
    than 1 to enable MSI-X.
    
    RSS key is not properly setup yet.

Summary of changes:
 sys/dev/netif/mxge/if_mxge.c     | 552 ++++++++++++++++++++++-----------------
 sys/dev/netif/mxge/if_mxge_var.h |  17 +-
 2 files changed, 320 insertions(+), 249 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e6c7b7530e64a9b215d3995859b175b99da8d487


-- 
DragonFly BSD source repository


More information about the Commits mailing list