freebsd-dev/sys/dev/bge
Pyun YongHyeon 66151edf96 The IFF_DRV_RUNNING flag is set at the end of bge_init_locked. But
before setting the flag, interrupt was already enabled such that
interrupt handler could be run before setting IFF_DRV_RUNNING flag.
This can lose initial link state change interrupt which in turn
make bge(4) think that it still does not have valid link. Fix this
race by protecting the taskqueue with a driver lock.
While I'm here move reenabling interrupt code after handling of link
state chage.

Reviewed by:	davidch
2010-10-11 23:07:12 +00:00
..
if_bge.c The IFF_DRV_RUNNING flag is set at the end of bge_init_locked. But 2010-10-11 23:07:12 +00:00
if_bgereg.h Remove bge_tx_buf_ratio, unused member of softc. 2010-10-06 17:47:13 +00:00