| 1171 | } |
| 1172 | |
| 1173 | static void |
| 1174 | bbr_init_sysctls(void) |
| 1175 | { |
| 1176 | struct sysctl_oid *bbr_probertt; |
| 1177 | struct sysctl_oid *bbr_hptsi; |
| 1178 | struct sysctl_oid *bbr_measure; |
| 1179 | struct sysctl_oid *bbr_cwnd; |
| 1180 | struct sysctl_oid *bbr_timeout; |
| 1181 | struct sysctl_oid *bbr_states; |
| 1182 | struct sysctl_oid *bbr_startup; |
| 1183 | struct sysctl_oid *bbr_policer; |
| 1184 | |
| 1185 | /* Probe rtt controls */ |
| 1186 | bbr_probertt = SYSCTL_ADD_NODE(&bbr_sysctl_ctx, |
| 1187 | SYSCTL_CHILDREN(bbr_sysctl_root), |
| 1188 | OID_AUTO, |
| 1189 | "probertt", |
| 1190 | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, |
| 1191 | ""); |
| 1192 | SYSCTL_ADD_S32(&bbr_sysctl_ctx, |
| 1193 | SYSCTL_CHILDREN(bbr_probertt), |
| 1194 | OID_AUTO, "gain", CTLFLAG_RW, |
| 1195 | &bbr_rttprobe_gain, 192, |
| 1196 | "What is the filter gain drop in probe_rtt (0=disable)?"); |
| 1197 | SYSCTL_ADD_U32(&bbr_sysctl_ctx, |
| 1198 | SYSCTL_CHILDREN(bbr_probertt), |
| 1199 | OID_AUTO, "cwnd", CTLFLAG_RW, |
| 1200 | &bbr_rtt_probe_cwndtarg, 4, |
| 1201 | "How many mss's are outstanding during probe-rtt"); |
| 1202 | SYSCTL_ADD_U32(&bbr_sysctl_ctx, |
| 1203 | SYSCTL_CHILDREN(bbr_probertt), |
| 1204 | OID_AUTO, "int", CTLFLAG_RW, |
| 1205 | &bbr_rtt_probe_limit, 4000000, |
| 1206 | "If RTT has not shrank in this many micro-seconds enter probe-rtt"); |
| 1207 | SYSCTL_ADD_U32(&bbr_sysctl_ctx, |
| 1208 | SYSCTL_CHILDREN(bbr_probertt), |
| 1209 | OID_AUTO, "mintime", CTLFLAG_RW, |
| 1210 | &bbr_rtt_probe_time, 200000, |
| 1211 | "How many microseconds in probe-rtt"); |
| 1212 | SYSCTL_ADD_S32(&bbr_sysctl_ctx, |
| 1213 | SYSCTL_CHILDREN(bbr_probertt), |
| 1214 | OID_AUTO, "filter_len_sec", CTLFLAG_RW, |
| 1215 | &bbr_filter_len_sec, 6, |
| 1216 | "How long in seconds does the rttProp filter run?"); |
| 1217 | SYSCTL_ADD_S32(&bbr_sysctl_ctx, |
| 1218 | SYSCTL_CHILDREN(bbr_probertt), |
| 1219 | OID_AUTO, "drain_rtt", CTLFLAG_RW, |
| 1220 | &bbr_drain_rtt, BBR_SRTT, |
| 1221 | "What is the drain rtt to use in probeRTT (rtt_prop=0, rtt_rack=1, rtt_pkt=2, rtt_srtt=3?"); |
| 1222 | SYSCTL_ADD_S32(&bbr_sysctl_ctx, |
| 1223 | SYSCTL_CHILDREN(bbr_probertt), |
| 1224 | OID_AUTO, "can_force", CTLFLAG_RW, |
| 1225 | &bbr_can_force_probertt, 0, |
| 1226 | "If we keep setting new low rtt's but delay going in probe-rtt can we force in??"); |
| 1227 | SYSCTL_ADD_S32(&bbr_sysctl_ctx, |
| 1228 | SYSCTL_CHILDREN(bbr_probertt), |
| 1229 | OID_AUTO, "enter_sets_force", CTLFLAG_RW, |
| 1230 | &bbr_probertt_sets_rtt, 0, |
no test coverage detected