Date: Fri, 27 May 2011 20:34:23 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/pci if_xl.c Message-ID: <201105272034.p4RKYakT006140@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yongari 2011-05-27 20:34:23 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/pci if_xl.c Log: SVN rev 222385 on 2011-05-27 20:34:23Z 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.210.2.15 +17 -12 src/sys/pci/if_xl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105272034.p4RKYakT006140>