Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/cc/cc_chd.c
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | chd_ack_received(struct cc_var *ccv, uint16_t ack_type) | ||||
} else if (ack_type == CC_ACK) | } else if (ack_type == CC_ACK) | ||||
chd_window_increase(ccv, new_measurement); | chd_window_increase(ccv, new_measurement); | ||||
} | } | ||||
static void | static void | ||||
chd_cb_destroy(struct cc_var *ccv) | chd_cb_destroy(struct cc_var *ccv) | ||||
{ | { | ||||
if (ccv->cc_data != NULL) | |||||
free(ccv->cc_data, M_CHD); | free(ccv->cc_data, M_CHD); | ||||
} | } | ||||
static int | static int | ||||
chd_cb_init(struct cc_var *ccv) | chd_cb_init(struct cc_var *ccv) | ||||
{ | { | ||||
struct chd *chd_data; | struct chd *chd_data; | ||||
chd_data = malloc(sizeof(struct chd), M_CHD, M_NOWAIT); | chd_data = malloc(sizeof(struct chd), M_CHD, M_NOWAIT); | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |