Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | rack_set_cc_pacing(struct tcp_rack *rack) | ||||
if (tp->cc_algo == NULL) { | if (tp->cc_algo == NULL) { | ||||
/* Tcb is leaving */ | /* Tcb is leaving */ | ||||
printf("No cc algorithm?\n"); | printf("No cc algorithm?\n"); | ||||
return; | return; | ||||
} | } | ||||
rack->rc_pacing_cc_set = 1; | rack->rc_pacing_cc_set = 1; | ||||
if (strcmp(tp->cc_algo->name, CCALGONAME_NEWRENO) != 0) { | if (strcmp(tp->cc_algo->name, CCALGONAME_NEWRENO) != 0) { | ||||
/* Not new-reno we can't play games with beta! */ | /* Not new-reno we can't play games with beta! */ | ||||
printf("cc_algo:%s is not NEWRENO:%s\n", | |||||
tp->cc_algo->name, CCALGONAME_NEWRENO); | |||||
goto out; | goto out; | ||||
} | } | ||||
ptr = ((struct newreno *)tp->ccv->cc_data); | ptr = ((struct newreno *)tp->ccv->cc_data); | ||||
if (CC_ALGO(tp)->ctl_output == NULL) { | if (CC_ALGO(tp)->ctl_output == NULL) { | ||||
/* Huh, why does new_reno no longer have a set function? */ | /* Huh, why does new_reno no longer have a set function? */ | ||||
printf("no ctl_output for algo:%s\n", tp->cc_algo->name); | printf("no ctl_output for algo:%s\n", tp->cc_algo->name); | ||||
goto out; | goto out; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 19,424 Lines • Show Last 20 Lines |