Date: Fri, 27 May 2011 20:33:26 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/xl if_xl.c Message-ID: <201105272033.p4RKXjT2006072@repoman.freebsd.org>
index | next in thread | raw e-mail
yongari 2011-05-27 20:33:26 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/dev/xl if_xl.c
Log:
SVN rev 222384 on 2011-05-27 20:33:26Z by yongari
MFC r221563-221564:
r221563:
Terminate interrupt handler if driver detect it's not running.
Also add check for driver running state before trying to send
frames. While I'm here, use for loop.
r221564:
Change xl_rxeof() a bit to return the number of processed frames in
RX descriptor ring. Previously it returned the number of frames
that were successfully passed to upper stack which in turn means it
ignored frames that were discarded due to errors. The number of
processed frames in RX descriptor ring is used to detect whether
driver is out of sync with controller's current descriptor pointer.
Returning number of processed frames reduces unnecessary (probably
wrong) re-synchronization.
While here, remove unnecessary local variable initialization.
Revision Changes Path
1.8.2.11 +12 -10 src/sys/dev/xl/if_xl.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105272033.p4RKXjT2006072>
