From: Sepherosa Ziehau Date: Mon, 26 Nov 2012 13:41:20 +0000 (+0800) Subject: polling: Increase default status polling fraction to 80 X-Git-Tag: v3.4.0rc~785 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/21ccbc2d3cf3b6c7eb27000386e21aeae9271820 polling: Increase default status polling fraction to 80 Before we bumped the polling frequency from 1000 to 2000, the status polling fraction was 20; keep the original ratio. --- diff --git a/share/man/man4/polling.4 b/share/man/man4/polling.4 index 218d5d02cc..3caaf0fa60 100644 --- a/share/man/man4/polling.4 +++ b/share/man/man4/polling.4 @@ -203,7 +203,7 @@ seconds) the status registers of the device are checked for error conditions and the like. Increasing this value reduces the load on the bus, but also delays the error detection. -Default is 40. +Default is 80. .Pp .It Va net.ifpoll.0.status.handlers How many active devices have registered for status diff --git a/sys/net/if_poll.c b/sys/net/if_poll.c index 2ea742f922..5384f4c79f 100644 --- a/sys/net/if_poll.c +++ b/sys/net/if_poll.c @@ -114,7 +114,7 @@ #define IFPOLL_FREQ_DEFAULT 4000 #define IFPOLL_TXFRAC_DEFAULT 1 /* 1/1 of the pollhz */ -#define IFPOLL_STFRAC_DEFAULT 40 /* 1/40 of the pollhz */ +#define IFPOLL_STFRAC_DEFAULT 80 /* 1/80 of the pollhz */ #define IFPOLL_RX 0x1 #define IFPOLL_TX 0x2