git: alc: Stablize this driver and fix various porting overlooks

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Aug 7 20:24:09 PDT 2012


commit a0e18bfd77e762327b379dcd37bf9b545c792950
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Aug 6 20:15:15 2012 +0800

    alc: Stablize this driver and fix various porting overlooks
    
    - Use ifnet serializer to protect driver data.  This should fix the
      various panics that were observed on the network output path.
    - Fix busdma setup.
    - Always allocate the descriptor rings and status blocks at the lower
      4GB.  The original way will require the RX/TX bufs to be located at
      the lower 4GB, which is a great waste of bounce buffers, cpu cycles
      and memory bandwidth.
    - Don't mess up M_PKTHDR on RX path.
    - Allocate mbuf w/ MB_WAIT on initialization path.
    - Enable MSI by default.

Summary of changes:
 sys/dev/netif/alc/if_alc.c    |  664 ++++++++++++-----------------------------
 sys/dev/netif/alc/if_alcvar.h |   56 +---
 2 files changed, 211 insertions(+), 509 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list