Go to the documentation of this file. 1 #ifndef __LINUX_PKT_SCHED_H
2 #define __LINUX_PKT_SCHED_H
4 #include <linux/types.h>
19 #define TC_PRIO_BESTEFFORT 0
20 #define TC_PRIO_FILLER 1
21 #define TC_PRIO_BULK 2
22 #define TC_PRIO_INTERACTIVE_BULK 4
23 #define TC_PRIO_INTERACTIVE 6
24 #define TC_PRIO_CONTROL 7
26 #define TC_PRIO_MAX 15
66 #define TC_H_MAJ_MASK (0xFFFF0000U)
67 #define TC_H_MIN_MASK (0x0000FFFFU)
68 #define TC_H_MAJ(h) ((h)&TC_H_MAJ_MASK)
69 #define TC_H_MIN(h) ((h)&TC_H_MIN_MASK)
70 #define TC_H_MAKE(maj,min) (((maj)&TC_H_MAJ_MASK)|((min)&TC_H_MIN_MASK))
72 #define TC_H_UNSPEC (0U)
73 #define TC_H_ROOT (0xFFFFFFFFU)
74 #define TC_H_INGRESS (0xFFFFFFF1U)
85 #define TC_RTAB_SIZE 1024
105 #define TCA_STAB_MAX (__TCA_STAB_MAX - 1)
115 #define TCQ_PRIO_BANDS 16
116 #define TCQ_MIN_PRIO_BANDS 2
132 #define TCQ_PLUG_BUFFER 0
133 #define TCQ_PLUG_RELEASE_ONE 1
134 #define TCQ_PLUG_RELEASE_INDEFINITE 2
135 #define TCQ_PLUG_LIMIT 3
169 #define TCA_TBF_MAX (__TCA_TBF_MAX - 1)
227 #define TCA_RED_MAX (__TCA_RED_MAX - 1)
238 #define TC_RED_HARDDROP 2
239 #define TC_RED_ADAPTATIVE 4
262 #define TCA_GRED_MAX (__TCA_GRED_MAX - 1)
302 #define TCA_CHOKE_MAX (__TCA_CHOKE_MAX - 1)
323 #define TC_HTB_NUMPRIO 8
324 #define TC_HTB_MAXDEPTH 8
325 #define TC_HTB_PROTOVER 3
354 #define TCA_HTB_MAX (__TCA_HTB_MAX - 1)
391 #define TCA_HFSC_MAX (__TCA_HFSC_MAX - 1)
396 #define TC_CBQ_MAXPRIO 8
397 #define TC_CBQ_MAXLEVEL 8
398 #define TC_CBQ_DEF_EWMA 5
403 #define TCF_CBQ_LSS_BOUNDED 1
404 #define TCF_CBQ_LSS_ISOLATED 2
407 #define TCF_CBQ_LSS_FLAGS 1
408 #define TCF_CBQ_LSS_EWMA 2
409 #define TCF_CBQ_LSS_MAXIDLE 4
410 #define TCF_CBQ_LSS_MINIDLE 8
411 #define TCF_CBQ_LSS_OFFTIME 0x10
412 #define TCF_CBQ_LSS_AVPKT 0x20
430 #define TC_CBQ_OVL_CLASSIC 0
431 #define TC_CBQ_OVL_DELAY 1
432 #define TC_CBQ_OVL_LOWPRIO 2
433 #define TC_CBQ_OVL_DROP 3
434 #define TC_CBQ_OVL_RCLASSIC 4
471 #define TCA_CBQ_MAX (__TCA_CBQ_MAX - 1)
485 #define TCA_DSMARK_MAX (__TCA_DSMARK_MAX - 1)
500 #define TCA_ATM_MAX (__TCA_ATM_MAX - 1)
516 #define TCA_NETEM_MAX (__TCA_NETEM_MAX - 1)
556 #define NETEM_LOSS_MAX (__NETEM_LOSS_MAX - 1)
575 #define NETEM_DIST_SCALE 8192
576 #define NETEM_DIST_MAX 16384
586 #define TCA_DRR_MAX (__TCA_DRR_MAX - 1)
593 #define TC_QOPT_BITMASK 15
594 #define TC_QOPT_MAX_QUEUE 16
612 #define TCA_SFB_MAX (__TCA_SFB_MAX - 1)
641 #define SFB_MAX_PROB 0xFFFF
651 #define TCA_QFQ_MAX (__TCA_QFQ_MAX - 1)
669 #define TCA_CODEL_MAX (__TCA_CODEL_MAX - 1)
697 #define TCA_FQ_CODEL_MAX (__TCA_FQ_CODEL_MAX - 1)