Changeset View
Changeset View
Standalone View
Standalone View
sys/net/altq/altq_cbq.h
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* Define macros only good for kernel drivers and modules. | * Define macros only good for kernel drivers and modules. | ||||
*/ | */ | ||||
#define CBQ_WATCHDOG (hz / 20) | #define CBQ_WATCHDOG (hz / 20) | ||||
#define CBQ_TIMEOUT 10 | #define CBQ_TIMEOUT 10 | ||||
#define CBQ_LS_TIMEOUT (20 * hz / 1000) | #define CBQ_LS_TIMEOUT (20 * hz / 1000) | ||||
#define CBQ_MAX_CLASSES 256 | #define CBQ_MAX_CLASSES 2048 | ||||
/* | /* | ||||
* Define State structures. | * Define State structures. | ||||
*/ | */ | ||||
typedef struct cbqstate { | typedef struct cbqstate { | ||||
int cbq_qlen; /* # of packets in cbq */ | int cbq_qlen; /* # of packets in cbq */ | ||||
struct rm_class *cbq_class_tbl[CBQ_MAX_CLASSES]; | struct rm_class *cbq_class_tbl[CBQ_MAX_CLASSES]; | ||||
Show All 14 Lines |