]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refactor TCP ISN increment logic. Instead of firing callout at 100Hz to
authorAlexander Motin <mav@FreeBSD.org>
Mon, 9 May 2011 07:37:47 +0000 (07:37 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 9 May 2011 07:37:47 +0000 (07:37 +0000)
commitbc7d18ae7224dbc67cf61fcdbceb6fc0976197b8
treefa50b5f7078864a3d1c257fbb5f7cfca4e57bd5b
parent07eb7033a6e87970afa4f02a568fa25fce79bd04
Refactor TCP ISN increment logic. Instead of firing callout at 100Hz to
keep constant ISN growth rate, do the same directly inside tcp_new_isn(),
taking into account how much time (ticks) passed since the last call.

On my test systems this decreases idle interrupt rate from 140Hz to 70Hz.
sys/netinet/tcp_subr.c