Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_vegas.c
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | vegas_ack_received(struct cc_var *ccv, uint16_t ack_type) | ||||
if (vegas_data->slow_start_toggle) | if (vegas_data->slow_start_toggle) | ||||
newreno_cc_algo.ack_received(ccv, ack_type); | newreno_cc_algo.ack_received(ccv, ack_type); | ||||
} | } | ||||
static void | static void | ||||
vegas_cb_destroy(struct cc_var *ccv) | vegas_cb_destroy(struct cc_var *ccv) | ||||
{ | { | ||||
if (ccv->cc_data != NULL) | |||||
free(ccv->cc_data, M_VEGAS); | free(ccv->cc_data, M_VEGAS); | ||||
} | } | ||||
static int | static int | ||||
vegas_cb_init(struct cc_var *ccv) | vegas_cb_init(struct cc_var *ccv) | ||||
{ | { | ||||
struct vegas *vegas_data; | struct vegas *vegas_data; | ||||
vegas_data = malloc(sizeof(struct vegas), M_VEGAS, M_NOWAIT); | vegas_data = malloc(sizeof(struct vegas), M_VEGAS, M_NOWAIT); | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |