Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/dn_sched_fq_codel.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | if (len < 0) | ||||
inc = -1; | inc = -1; | ||||
else if (len > 0) | else if (len > 0) | ||||
inc = 1; | inc = 1; | ||||
if (drop) { | if (drop) { | ||||
si->main_q.ni.drops ++; | si->main_q.ni.drops ++; | ||||
q->stats.drops ++; | q->stats.drops ++; | ||||
si->_si.ni.drops ++; | si->_si.ni.drops ++; | ||||
io_pkt_drop ++; | dn_cfg.io_pkt_drop ++; | ||||
} | } | ||||
if (!drop || (drop && len < 0)) { | if (!drop || (drop && len < 0)) { | ||||
/* Update stats for the main queue */ | /* Update stats for the main queue */ | ||||
si->main_q.ni.length += inc; | si->main_q.ni.length += inc; | ||||
si->main_q.ni.len_bytes += len; | si->main_q.ni.len_bytes += len; | ||||
/*update sub-queue stats */ | /*update sub-queue stats */ | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |