Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_newreno.c
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
static void newreno_newround(struct cc_var *ccv, uint32_t round_cnt); | static void newreno_newround(struct cc_var *ccv, uint32_t round_cnt); | ||||
static void newreno_rttsample(struct cc_var *ccv, uint32_t usec_rtt, uint32_t rxtcnt, uint32_t fas); | static void newreno_rttsample(struct cc_var *ccv, uint32_t usec_rtt, uint32_t rxtcnt, uint32_t fas); | ||||
static int newreno_cb_init(struct cc_var *ccv, void *); | static int newreno_cb_init(struct cc_var *ccv, void *); | ||||
static size_t newreno_data_sz(void); | static size_t newreno_data_sz(void); | ||||
VNET_DECLARE(uint32_t, newreno_beta); | VNET_DECLARE(uint32_t, newreno_beta); | ||||
#define V_newreno_beta VNET(newreno_beta) | #define V_newreno_beta VNET(newreno_beta) | ||||
VNET_DEFINE(uint32_t, newreno_beta_ecn) = 80; | VNET_DECLARE(uint32_t, newreno_beta_ecn); | ||||
#define V_newreno_beta_ecn VNET(newreno_beta_ecn) | #define V_newreno_beta_ecn VNET(newreno_beta_ecn) | ||||
struct cc_algo newreno_cc_algo = { | struct cc_algo newreno_cc_algo = { | ||||
.name = "newreno", | .name = "newreno", | ||||
.cb_destroy = newreno_cb_destroy, | .cb_destroy = newreno_cb_destroy, | ||||
.ack_received = newreno_ack_received, | .ack_received = newreno_ack_received, | ||||
.after_idle = newreno_after_idle, | .after_idle = newreno_after_idle, | ||||
.cong_signal = newreno_cong_signal, | .cong_signal = newreno_cong_signal, | ||||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |