git: bnx: In polling mode, force chip update status block for status changes

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu May 9 07:17:03 PDT 2013


commit 24e16e4bbeba80dff6f6424d88762b01b93099d6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu May 9 21:59:11 2013 +0800

    bnx: In polling mode, force chip update status block for status changes
    
    If the status block updating is not forced, we will always see staled
    status changes in polling mode, which causes bunch of unnecessary register
    reading.
    
    For status changes sharing status block with transmission, staled status
    changes probably won't linger for too much time, since any data transmit
    completion will cause status block to be updated.  However, for status
    changes using its own status block, staled status changes will be there
    until the chips are stopped.

Summary of changes:
 sys/dev/netif/bnx/if_bnx.c | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/24e16e4bbeba80dff6f6424d88762b01b93099d6


-- 
DragonFly BSD source repository



More information about the Commits mailing list