DragonFly commits List (threaded) for 2007-04
DragonFly BSD
DragonFly commits List (threaded) for 2007-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/dev/netif/bge if_bge.c if_bgereg.h


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 21 Apr 2007 21:16:26 -0700 (PDT)

sephe       2007/04/21 21:16:26 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/bge    if_bge.c if_bgereg.h 
  Log:
  Busdma(9)-fy, mainly obtained from FreeBSD:
  if_bge.c	rev 1.{45,76,81,85,101,105,106,109,151}
  if_bgereg.h	rev 1.{19,40}
  
  Local changes:
  - Factor out bge_dma_block_{alloc,free}() to avoid code duplication.
  - Move jumbo buffer pool allocation/free into bge_dma_{alloc,free}().
  - In bge_newbuf_std(), use bus_dmamap_load_mbuf() instead of bus_dmamap_load().
  - Nuke vm header files inclusion.
  - In bge_start():
    o   Bail out if OACTIVE is turned on or if bge(4) is not running yet.
    o   Move ifq_dequeue() before bge_encap(), since m_defrag() in bge_encap()
        will trash the mbuf parameter passed in.
    o   Make sure there are enough TX descriptors, before dequeuing mbuf and
        calling bge_encap().
  - Don't call ifnet.if_start() on very interrupt, but at the end of bge_txeof().
  - In bge_txeof(), if there are not enough TX descriptors, then don't clear
    OACTIVE.
  - Minor style changes.
  
  Revision  Changes    Path
  1.68      +695 -213  src/sys/dev/netif/bge/if_bge.c
  1.18      +108 -19   src/sys/dev/netif/bge/if_bgereg.h


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bge.c.diff?r1=1.67&r2=1.68&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bgereg.h.diff?r1=1.17&r2=1.18&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]