Atomically load and clear the status block. This makes the bge
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 19 Aug 2005 14:41:07 +0000 (14:41 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 19 Aug 2005 14:41:07 +0000 (14:41 +0000)
commit0029ccf624e1a73c4088e83063d3b49e5b1a07c2
tree35795973461ae5c4d513c21ca73138c28ea8479f
parent9a6ee7e20253aa07aa57f821d6d2a5e65039df9e
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