Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/cc/cc_newreno.c
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | newreno_malloc(struct cc_var *ccv) | ||||
} | } | ||||
return (nreno); | return (nreno); | ||||
} | } | ||||
static void | static void | ||||
newreno_cb_destroy(struct cc_var *ccv) | newreno_cb_destroy(struct cc_var *ccv) | ||||
{ | { | ||||
if (ccv->cc_data != NULL) | |||||
free(ccv->cc_data, M_NEWRENO); | free(ccv->cc_data, M_NEWRENO); | ||||
} | } | ||||
static void | static void | ||||
newreno_ack_received(struct cc_var *ccv, uint16_t type) | newreno_ack_received(struct cc_var *ccv, uint16_t type) | ||||
{ | { | ||||
if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && | if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && | ||||
(ccv->flags & CCF_CWND_LIMITED)) { | (ccv->flags & CCF_CWND_LIMITED)) { | ||||
u_int cw = CCV(ccv, snd_cwnd); | u_int cw = CCV(ccv, snd_cwnd); | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |