Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_hpts.c
Show All 12 Lines | |||||
error = EINVAL; | error = EINVAL; | ||||
else | else | ||||
hpts_sleep_max = new; | hpts_sleep_max = new; | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_net_inet_tcp_hpts, OID_AUTO, maxsleep, | SYSCTL_PROC(_net_inet_tcp_hpts, OID_AUTO, maxsleep, | ||||
CTLTYPE_UINT | CTLFLAG_RW, | CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
&hpts_sleep_max, 0, | &hpts_sleep_max, 0, | ||||
&sysctl_net_inet_tcp_hpts_max_sleep, "IU", | &sysctl_net_inet_tcp_hpts_max_sleep, "IU", | ||||
"Maximum time hpts will sleep"); | "Maximum time hpts will sleep"); | ||||
SYSCTL_INT(_net_inet_tcp_hpts, OID_AUTO, minsleep, CTLFLAG_RW, | SYSCTL_INT(_net_inet_tcp_hpts, OID_AUTO, minsleep, CTLFLAG_RW, | ||||
&tcp_min_hptsi_time, 0, | &tcp_min_hptsi_time, 0, | ||||
"The minimum time the hpts must sleep before processing more slots"); | "The minimum time the hpts must sleep before processing more slots"); | ||||
Show All 12 Lines |