Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/altq/altq_fairq.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | struct fairq_classstats { | ||||
struct pktcntr drop_cnt; /* dropped packet counter */ | struct pktcntr drop_cnt; /* dropped packet counter */ | ||||
/* codel, red and rio related info */ | /* codel, red and rio related info */ | ||||
int qtype; | int qtype; | ||||
struct redstats red[3]; /* rio has 3 red stats */ | struct redstats red[3]; /* rio has 3 red stats */ | ||||
struct codel_stats codel; | struct codel_stats codel; | ||||
}; | }; | ||||
/* | |||||
* FAIRQ_STATS_VERSION is defined in altq.h to work around issues stemming | |||||
* from mixing of public-API and internal bits in each scheduler-specific | |||||
* header. | |||||
*/ | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
typedef struct fairq_bucket { | typedef struct fairq_bucket { | ||||
struct fairq_bucket *next; /* circular list */ | struct fairq_bucket *next; /* circular list */ | ||||
struct fairq_bucket *prev; /* circular list */ | struct fairq_bucket *prev; /* circular list */ | ||||
class_queue_t queue; /* the actual queue */ | class_queue_t queue; /* the actual queue */ | ||||
uint64_t bw_bytes; /* statistics used to calculate bw */ | uint64_t bw_bytes; /* statistics used to calculate bw */ | ||||
uint64_t bw_delta; /* statistics used to calculate bw */ | uint64_t bw_delta; /* statistics used to calculate bw */ | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |