Date: Sat, 19 Feb 2011 01:37:28 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/dc if_dc.c Message-ID: <201102190944.p1J9i486067002@repoman.freebsd.org>
index | next in thread | raw e-mail
yongari 2011-02-19 01:37:28 UTC
FreeBSD src repository
Modified files:
sys/dev/dc if_dc.c
Log:
SVN rev 218831 on 2011-02-19 01:37:28Z by yongari
Rearrange interrupt handler a bit and remove forever loop.
Previously dc(4) always checked whether there is pending interrupts
and this consumed a lot of CPU cycles in interrupt handler. Limit
the number of processing for TX/RX frames to 16. Also allow sending
frames in the loop not to starve TX under high RX load.
Reading DC_ISR register should be protected with driver lock,
otherwise interrupt handler could be run(e.g. link state change)
before the completion of dc_init_locked().
While I'm here remove unneeded code.
Revision Changes Path
1.215 +20 -22 src/sys/dev/dc/if_dc.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102190944.p1J9i486067002>
