cvs commit: src/sys/dev/netif/nfe if_nfe.c if_nfevar.h
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sat Jul 5 00:32:58 PDT 2008
sephe 2008/07/05 00:29:44 PDT
DragonFly src repository
Modified files:
sys/dev/netif/nfe if_nfe.c if_nfevar.h
Log:
Use hardware timer to simulate interrupt moderation.
hw.nfeX.imtimer -> 0 no interrupt moderation at all.
hw.nfeX.imtimer -> -Y hardware timer simulated interrupt moderation,
the simultated interrupt moderation timer will
be set to Y.
hw.nfeX.imtimer -> Y hardware timer only interrupt moderation,
hardware timer will be set to Y.
Set hw.nfeX.imtimer to -125 (8000Hz) should work on most system.
With heavier interrupt moderation (e.g. hw.nfeX.imtimer to -250), it is
recommended to increase hw.nfe.rx_ring_count tunable to a higher value
(e.g. 512), since the default value (128) is obviously too small.
Revision Changes Path
1.31 +104 -43 src/sys/dev/netif/nfe/if_nfe.c
1.9 +6 -3 src/sys/dev/netif/nfe/if_nfevar.h
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nfe/if_nfe.c.diff?r1=1.30&r2=1.31&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nfe/if_nfevar.h.diff?r1=1.8&r2=1.9&f=u
More information about the Commits
mailing list