Atomically load and clear the status block. This makes the bge
commit19b8aded85029a97618f232f5d53f52ddf5cc0f5
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 19 Aug 2005 14:41:07 +0000 (19 14:41 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 19 Aug 2005 14:41:07 +0000 (19 14:41 +0000)
tree719c14d3a2fb4be1db67b1a8176fd857b169cb9e
parentb57994cd1763f61d0928a3d08bb5bfaf282deb76
Atomically load and clear the status block.  This makes the bge
devices work much better when interrupts are shared.

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
sys/dev/netif/bge/if_bge.c