Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc.c
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
/* Protects the cc_list TAILQ. */ | /* Protects the cc_list TAILQ. */ | ||||
struct rwlock cc_list_lock; | struct rwlock cc_list_lock; | ||||
VNET_DEFINE(struct cc_algo *, default_cc_ptr) = NULL; | VNET_DEFINE(struct cc_algo *, default_cc_ptr) = NULL; | ||||
VNET_DEFINE(uint32_t, newreno_beta) = 50; | VNET_DEFINE(uint32_t, newreno_beta) = 50; | ||||
#define V_newreno_beta VNET(newreno_beta) | #define V_newreno_beta VNET(newreno_beta) | ||||
VNET_DEFINE(uint32_t, newreno_beta_ecn) = 80; | |||||
void | void | ||||
cc_refer(struct cc_algo *algo) | cc_refer(struct cc_algo *algo) | ||||
{ | { | ||||
CC_LIST_LOCK_ASSERT(); | CC_LIST_LOCK_ASSERT(); | ||||
refcount_acquire(&algo->cc_refcount); | refcount_acquire(&algo->cc_refcount); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 596 Lines • Show Last 20 Lines |