Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc.c
Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | cc_modevent(module_t mod, int event_type, void *data) | ||||
default: | default: | ||||
err = EINVAL; | err = EINVAL; | ||||
break; | break; | ||||
} | } | ||||
return (err); | return (err); | ||||
} | } | ||||
SYSINIT(cc, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, cc_init, NULL); | SYSINIT(cc, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, cc_init); | ||||
/* Declare sysctl tree and populate it. */ | /* Declare sysctl tree and populate it. */ | ||||
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, cc, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, | SYSCTL_NODE(_net_inet_tcp, OID_AUTO, cc, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, | ||||
"Congestion control related settings"); | "Congestion control related settings"); | ||||
SYSCTL_PROC(_net_inet_tcp_cc, OID_AUTO, algorithm, | SYSCTL_PROC(_net_inet_tcp_cc, OID_AUTO, algorithm, | ||||
CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE, | CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE, | ||||
NULL, 0, cc_default_algo, "A", | NULL, 0, cc_default_algo, "A", | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |