summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_subr.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1998-09-06 14:58:46 +0000
committerwpaul <wpaul@FreeBSD.org>1998-09-06 14:58:46 +0000
commit70e4d378e2ccabcec6276cacbf9ee67ab6672ab2 (patch)
treebf949b51190e4d493ebd40998f7b20cf21472753 /sys/coda/coda_subr.h
parente5d890e5388d2074250b8ae0c651552df03ee207 (diff)
downloadFreeBSD-src-70e4d378e2ccabcec6276cacbf9ee67ab6672ab2.zip
FreeBSD-src-70e4d378e2ccabcec6276cacbf9ee67ab6672ab2.tar.gz
Patch the transmit error handler to avoid following NULL pointers and
generating a trap 12 panic. The code blindly assumed that in the event of a transmit error, the packet that caused the error would still be at the head of the driver's transmit queue (sc->xl_cdata.xl_tx_head). However in the case of error 82 (which indicates that a transmit error occurred after part of the transmit FIFO memory has been reclaimed) this is not true: the TX queue has already been flushed, and the pointer to the head of the queue is NULL, so trying to dereference the pointer to find the transmit descriptor address causes a crash. The code now checks for a NULL pointer before trying to reload the chip's download pointer register. There may still be error messages printed warning of the transmit error, but no panic should occur. Note that this eror code is only generated with "cyclone" chipsets (3c900B, 3c905B, and presumeably the 3c980 server adapter). It should only appear during periods of heavy traffic, probably only on non-switched networks. Problem reported by: Darcy Buskermolen <darcy@ok-connect.com>
Diffstat (limited to 'sys/coda/coda_subr.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud