git: igb: Optimize the aggregated TX/RX MSI-X handler a bit

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Dec 21 03:38:15 PST 2015


commit aee051680c9f562d658b59ac83393c04b4f52cc2
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Dec 21 19:22:19 2015 +0800

    igb: Optimize the aggregated TX/RX MSI-X handler a bit
    
    By checking whether there are any TX descs to collect or not, before
    holding the TX ring serializer.
    
    This requires that igb_txeof() is only called in interrupt handler,
    thus we remove the igb_txeof() from igb_start(), which does nothing
    most of the time.  Removal of igb_txeof() from igb_start() also allows
    us to simplify the TX ring OACTIVE detection, so several unused water
    marks are also removed.

Summary of changes:
 sys/dev/netif/igb/if_igb.c | 59 +++++++++++++++++++++-------------------------
 sys/dev/netif/igb/if_igb.h | 11 +--------
 2 files changed, 28 insertions(+), 42 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list