Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/dn_aqm_codel.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
codel_dequeue(struct dn_queue *q) | codel_dequeue(struct dn_queue *q) | ||||
{ | { | ||||
struct mbuf *m; | struct mbuf *m; | ||||
struct dn_aqm_codel_parms *cprms; | struct dn_aqm_codel_parms *cprms; | ||||
struct codel_status *cst; | struct codel_status *cst; | ||||
aqm_time_t now; | aqm_time_t now; | ||||
uint16_t ok_to_drop; | uint16_t ok_to_drop; | ||||
cst = q->aqm_status;; | cst = q->aqm_status; | ||||
cprms = q->fs->aqmcfg; | cprms = q->fs->aqmcfg; | ||||
now = AQM_UNOW; | now = AQM_UNOW; | ||||
m = codel_dodequeue(q, now, &ok_to_drop); | m = codel_dodequeue(q, now, &ok_to_drop); | ||||
if (cst->dropping) { | if (cst->dropping) { | ||||
if (!ok_to_drop) { | if (!ok_to_drop) { | ||||
/* sojourn time below target - leave dropping state */ | /* sojourn time below target - leave dropping state */ | ||||
cst->dropping = false; | cst->dropping = false; | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |