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


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Apr 2007 04:58:11 -0700 (PDT)

sephe       2007/04/26 04:58:10 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/bge    if_bge.c 
  Log:
  - Don't disable interrupt in bge_intr(), just acknowledge it.  This avoids
    potential lose of interrupt when interrupt gets re-enabled, since writing
    to BGE_MBX_IRQ0_LO also serves as interrupt acknowledgment.
  - Move interrupt acknowledgment before reading status block.  This lets us
    read the correct/complete status block.
  - Reset ifnet.if_timer, only if there is nothing pending to be TXed.
  
  Obtained-from: FreeBSD (bde@freebsd.org)
  
  Revision  Changes    Path
  1.71      +25 -13    src/sys/dev/netif/bge/if_bge.c


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bge.c.diff?r1=1.70&r2=1.71&f=u



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