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

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Apr 26 04:59:32 PDT 2007


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 at 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





More information about the Commits mailing list