git: mxge: There is no need to hold TX serialize to check pkt_done

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Sep 24 07:05:04 PDT 2013


commit 45bc9b9d57e48d0fdb14ffe30f43a8c01a36a4f3
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Sep 24 21:18:49 2013 +0800

    mxge: There is no need to hold TX serialize to check pkt_done
    
    Since pkt_done is only updated by mxge_tx_done(), which is only called
    from the interrupt handler, checking pkt_done from the interrupt handler
    does not need TX serialize at all.  This reduce TX serialize contention.

Summary of changes:
 sys/dev/netif/mxge/if_mxge.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/45bc9b9d57e48d0fdb14ffe30f43a8c01a36a4f3


-- 
DragonFly BSD source repository


More information about the Commits mailing list