]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug in the driver -- under load, the receive unit could become
authorluigi <luigi@FreeBSD.org>
Tue, 27 Nov 2001 16:29:11 +0000 (16:29 +0000)
committerluigi <luigi@FreeBSD.org>
Tue, 27 Nov 2001 16:29:11 +0000 (16:29 +0000)
commitd6ea22c61785f66fda317a412e9febf626847326
treea80590a6c440662787b8d2bbe7f8fef3f0069094
parenta2f0a76ebcd5b63f172b9f17a662de0c4d59ff22
Fix a bug in the driver -- under load, the receive unit could become
idle and the driver would not detect the event, requiring userland
to cycle the interface to bring it up again.
The fix consists in adding SIS_IMR_RX_IDLE to the interrupt mask and
add a command in sis_intr() to restart the receiver when this happens.

While at it, make the test of status bits more efficient.
sys/pci/if_sis.c
sys/pci/if_sisreg.h