Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
pkt_sched.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  tc_stats
 
struct  tc_estimator
 
struct  tc_ratespec
 
struct  tc_sizespec
 
struct  tc_fifo_qopt
 
struct  tc_prio_qopt
 
struct  tc_multiq_qopt
 
struct  tc_plug_qopt
 
struct  tc_tbf_qopt
 
struct  tc_sfq_qopt
 
struct  tc_sfqred_stats
 
struct  tc_sfq_qopt_v1
 
struct  tc_sfq_xstats
 
struct  tc_red_qopt
 
struct  tc_red_xstats
 
struct  tc_gred_qopt
 
struct  tc_gred_sopt
 
struct  tc_choke_qopt
 
struct  tc_choke_xstats
 
struct  tc_htb_opt
 
struct  tc_htb_glob
 
struct  tc_htb_xstats
 
struct  tc_hfsc_qopt
 
struct  tc_service_curve
 
struct  tc_hfsc_stats
 
struct  tc_cbq_lssopt
 
struct  tc_cbq_wrropt
 
struct  tc_cbq_ovl
 
struct  tc_cbq_police
 
struct  tc_cbq_fopt
 
struct  tc_cbq_xstats
 
struct  tc_netem_qopt
 
struct  tc_netem_corr
 
struct  tc_netem_reorder
 
struct  tc_netem_corrupt
 
struct  tc_netem_rate
 
struct  tc_netem_gimodel
 
struct  tc_netem_gemodel
 
struct  tc_drr_stats
 
struct  tc_mqprio_qopt
 
struct  tc_sfb_qopt
 
struct  tc_sfb_xstats
 
struct  tc_qfq_stats
 
struct  tc_codel_xstats
 
struct  tc_fq_codel_qd_stats
 
struct  tc_fq_codel_cl_stats
 
struct  tc_fq_codel_xstats
 

Macros

#define TC_PRIO_BESTEFFORT   0
 
#define TC_PRIO_FILLER   1
 
#define TC_PRIO_BULK   2
 
#define TC_PRIO_INTERACTIVE_BULK   4
 
#define TC_PRIO_INTERACTIVE   6
 
#define TC_PRIO_CONTROL   7
 
#define TC_PRIO_MAX   15
 
#define TC_H_MAJ_MASK   (0xFFFF0000U)
 
#define TC_H_MIN_MASK   (0x0000FFFFU)
 
#define TC_H_MAJ(h)   ((h)&TC_H_MAJ_MASK)
 
#define TC_H_MIN(h)   ((h)&TC_H_MIN_MASK)
 
#define TC_H_MAKE(maj, min)   (((maj)&TC_H_MAJ_MASK)|((min)&TC_H_MIN_MASK))
 
#define TC_H_UNSPEC   (0U)
 
#define TC_H_ROOT   (0xFFFFFFFFU)
 
#define TC_H_INGRESS   (0xFFFFFFF1U)
 
#define TC_RTAB_SIZE   1024
 
#define TCA_STAB_MAX   (__TCA_STAB_MAX - 1)
 
#define TCQ_PRIO_BANDS   16
 
#define TCQ_MIN_PRIO_BANDS   2
 
#define TCQ_PLUG_BUFFER   0
 
#define TCQ_PLUG_RELEASE_ONE   1
 
#define TCQ_PLUG_RELEASE_INDEFINITE   2
 
#define TCQ_PLUG_LIMIT   3
 
#define TCA_TBF_MAX   (__TCA_TBF_MAX - 1)
 
#define TCA_RED_MAX   (__TCA_RED_MAX - 1)
 
#define TC_RED_ECN   1
 
#define TC_RED_HARDDROP   2
 
#define TC_RED_ADAPTATIVE   4
 
#define MAX_DPs   16
 
#define TCA_GRED_MAX   (__TCA_GRED_MAX - 1)
 
#define TCA_CHOKE_MAX   (__TCA_CHOKE_MAX - 1)
 
#define TC_HTB_NUMPRIO   8
 
#define TC_HTB_MAXDEPTH   8
 
#define TC_HTB_PROTOVER   3 /* the same as HTB and TC's major */
 
#define TCA_HTB_MAX   (__TCA_HTB_MAX - 1)
 
#define TCA_HFSC_MAX   (__TCA_HFSC_MAX - 1)
 
#define TC_CBQ_MAXPRIO   8
 
#define TC_CBQ_MAXLEVEL   8
 
#define TC_CBQ_DEF_EWMA   5
 
#define TCF_CBQ_LSS_BOUNDED   1
 
#define TCF_CBQ_LSS_ISOLATED   2
 
#define TCF_CBQ_LSS_FLAGS   1
 
#define TCF_CBQ_LSS_EWMA   2
 
#define TCF_CBQ_LSS_MAXIDLE   4
 
#define TCF_CBQ_LSS_MINIDLE   8
 
#define TCF_CBQ_LSS_OFFTIME   0x10
 
#define TCF_CBQ_LSS_AVPKT   0x20
 
#define TC_CBQ_OVL_CLASSIC   0
 
#define TC_CBQ_OVL_DELAY   1
 
#define TC_CBQ_OVL_LOWPRIO   2
 
#define TC_CBQ_OVL_DROP   3
 
#define TC_CBQ_OVL_RCLASSIC   4
 
#define TCA_CBQ_MAX   (__TCA_CBQ_MAX - 1)
 
#define TCA_DSMARK_MAX   (__TCA_DSMARK_MAX - 1)
 
#define TCA_ATM_MAX   (__TCA_ATM_MAX - 1)
 
#define TCA_NETEM_MAX   (__TCA_NETEM_MAX - 1)
 
#define NETEM_LOSS_MAX   (__NETEM_LOSS_MAX - 1)
 
#define NETEM_DIST_SCALE   8192
 
#define NETEM_DIST_MAX   16384
 
#define TCA_DRR_MAX   (__TCA_DRR_MAX - 1)
 
#define TC_QOPT_BITMASK   15
 
#define TC_QOPT_MAX_QUEUE   16
 
#define TCA_SFB_MAX   (__TCA_SFB_MAX - 1)
 
#define SFB_MAX_PROB   0xFFFF
 
#define TCA_QFQ_MAX   (__TCA_QFQ_MAX - 1)
 
#define TCA_CODEL_MAX   (__TCA_CODEL_MAX - 1)
 
#define TCA_FQ_CODEL_MAX   (__TCA_FQ_CODEL_MAX - 1)
 

Enumerations

enum  { TCA_STAB_UNSPEC, TCA_STAB_BASE, TCA_STAB_DATA, __TCA_STAB_MAX }
 
enum  {
  TCA_TBF_UNSPEC, TCA_TBF_PARMS, TCA_TBF_RTAB, TCA_TBF_PTAB,
  __TCA_TBF_MAX
}
 
enum  {
  TCA_RED_UNSPEC, TCA_RED_PARMS, TCA_RED_STAB, TCA_RED_MAX_P,
  __TCA_RED_MAX
}
 
enum  {
  TCA_GRED_UNSPEC, TCA_GRED_PARMS, TCA_GRED_STAB, TCA_GRED_DPS,
  TCA_GRED_MAX_P, __TCA_GRED_MAX
}
 
enum  {
  TCA_CHOKE_UNSPEC, TCA_CHOKE_PARMS, TCA_CHOKE_STAB, TCA_CHOKE_MAX_P,
  __TCA_CHOKE_MAX
}
 
enum  {
  TCA_HTB_UNSPEC, TCA_HTB_PARMS, TCA_HTB_INIT, TCA_HTB_CTAB,
  TCA_HTB_RTAB, __TCA_HTB_MAX
}
 
enum  {
  TCA_HFSC_UNSPEC, TCA_HFSC_RSC, TCA_HFSC_FSC, TCA_HFSC_USC,
  __TCA_HFSC_MAX
}
 
enum  {
  TCA_CBQ_UNSPEC, TCA_CBQ_LSSOPT, TCA_CBQ_WRROPT, TCA_CBQ_FOPT,
  TCA_CBQ_OVL_STRATEGY, TCA_CBQ_RATE, TCA_CBQ_RTAB, TCA_CBQ_POLICE,
  __TCA_CBQ_MAX
}
 
enum  {
  TCA_DSMARK_UNSPEC, TCA_DSMARK_INDICES, TCA_DSMARK_DEFAULT_INDEX, TCA_DSMARK_SET_TC_INDEX,
  TCA_DSMARK_MASK, TCA_DSMARK_VALUE, __TCA_DSMARK_MAX
}
 
enum  {
  TCA_ATM_UNSPEC, TCA_ATM_FD, TCA_ATM_PTR, TCA_ATM_HDR,
  TCA_ATM_EXCESS, TCA_ATM_ADDR, TCA_ATM_STATE, __TCA_ATM_MAX
}
 
enum  {
  TCA_NETEM_UNSPEC, TCA_NETEM_CORR, TCA_NETEM_DELAY_DIST, TCA_NETEM_REORDER,
  TCA_NETEM_CORRUPT, TCA_NETEM_LOSS, TCA_NETEM_RATE, TCA_NETEM_ECN,
  __TCA_NETEM_MAX
}
 
enum  { NETEM_LOSS_UNSPEC, NETEM_LOSS_GI, NETEM_LOSS_GE, __NETEM_LOSS_MAX }
 
enum  { TCA_DRR_UNSPEC, TCA_DRR_QUANTUM, __TCA_DRR_MAX }
 
enum  { TCA_SFB_UNSPEC, TCA_SFB_PARMS, __TCA_SFB_MAX }
 
enum  { TCA_QFQ_UNSPEC, TCA_QFQ_WEIGHT, TCA_QFQ_LMAX, __TCA_QFQ_MAX }
 
enum  {
  TCA_CODEL_UNSPEC, TCA_CODEL_TARGET, TCA_CODEL_LIMIT, TCA_CODEL_INTERVAL,
  TCA_CODEL_ECN, __TCA_CODEL_MAX
}
 
enum  {
  TCA_FQ_CODEL_UNSPEC, TCA_FQ_CODEL_TARGET, TCA_FQ_CODEL_LIMIT, TCA_FQ_CODEL_INTERVAL,
  TCA_FQ_CODEL_ECN, TCA_FQ_CODEL_FLOWS, TCA_FQ_CODEL_QUANTUM, __TCA_FQ_CODEL_MAX
}
 
enum  { TCA_FQ_CODEL_XSTATS_QDISC, TCA_FQ_CODEL_XSTATS_CLASS }
 

Macro Definition Documentation

#define MAX_DPs   16

Definition at line 251 of file pkt_sched.h.

#define NETEM_DIST_MAX   16384

Definition at line 576 of file pkt_sched.h.

#define NETEM_DIST_SCALE   8192

Definition at line 575 of file pkt_sched.h.

#define NETEM_LOSS_MAX   (__NETEM_LOSS_MAX - 1)

Definition at line 556 of file pkt_sched.h.

#define SFB_MAX_PROB   0xFFFF

Definition at line 641 of file pkt_sched.h.

#define TC_CBQ_DEF_EWMA   5

Definition at line 398 of file pkt_sched.h.

#define TC_CBQ_MAXLEVEL   8

Definition at line 397 of file pkt_sched.h.

#define TC_CBQ_MAXPRIO   8

Definition at line 396 of file pkt_sched.h.

#define TC_CBQ_OVL_CLASSIC   0

Definition at line 430 of file pkt_sched.h.

#define TC_CBQ_OVL_DELAY   1

Definition at line 431 of file pkt_sched.h.

#define TC_CBQ_OVL_DROP   3

Definition at line 433 of file pkt_sched.h.

#define TC_CBQ_OVL_LOWPRIO   2

Definition at line 432 of file pkt_sched.h.

#define TC_CBQ_OVL_RCLASSIC   4

Definition at line 434 of file pkt_sched.h.

#define TC_H_INGRESS   (0xFFFFFFF1U)

Definition at line 74 of file pkt_sched.h.

#define TC_H_MAJ (   h)    ((h)&TC_H_MAJ_MASK)

Definition at line 68 of file pkt_sched.h.

#define TC_H_MAJ_MASK   (0xFFFF0000U)

Definition at line 66 of file pkt_sched.h.

#define TC_H_MAKE (   maj,
  min 
)    (((maj)&TC_H_MAJ_MASK)|((min)&TC_H_MIN_MASK))

Definition at line 70 of file pkt_sched.h.

#define TC_H_MIN (   h)    ((h)&TC_H_MIN_MASK)

Definition at line 69 of file pkt_sched.h.

#define TC_H_MIN_MASK   (0x0000FFFFU)

Definition at line 67 of file pkt_sched.h.

#define TC_H_ROOT   (0xFFFFFFFFU)

Definition at line 73 of file pkt_sched.h.

#define TC_H_UNSPEC   (0U)

Definition at line 72 of file pkt_sched.h.

#define TC_HTB_MAXDEPTH   8

Definition at line 324 of file pkt_sched.h.

#define TC_HTB_NUMPRIO   8

Definition at line 323 of file pkt_sched.h.

#define TC_HTB_PROTOVER   3 /* the same as HTB and TC's major */

Definition at line 325 of file pkt_sched.h.

#define TC_PRIO_BESTEFFORT   0

Definition at line 19 of file pkt_sched.h.

#define TC_PRIO_BULK   2

Definition at line 21 of file pkt_sched.h.

#define TC_PRIO_CONTROL   7

Definition at line 24 of file pkt_sched.h.

#define TC_PRIO_FILLER   1

Definition at line 20 of file pkt_sched.h.

#define TC_PRIO_INTERACTIVE   6

Definition at line 23 of file pkt_sched.h.

#define TC_PRIO_INTERACTIVE_BULK   4

Definition at line 22 of file pkt_sched.h.

#define TC_PRIO_MAX   15

Definition at line 26 of file pkt_sched.h.

#define TC_QOPT_BITMASK   15

Definition at line 593 of file pkt_sched.h.

#define TC_QOPT_MAX_QUEUE   16

Definition at line 594 of file pkt_sched.h.

#define TC_RED_ADAPTATIVE   4

Definition at line 239 of file pkt_sched.h.

#define TC_RED_ECN   1

Definition at line 237 of file pkt_sched.h.

#define TC_RED_HARDDROP   2

Definition at line 238 of file pkt_sched.h.

#define TC_RTAB_SIZE   1024

Definition at line 85 of file pkt_sched.h.

#define TCA_ATM_MAX   (__TCA_ATM_MAX - 1)

Definition at line 500 of file pkt_sched.h.

#define TCA_CBQ_MAX   (__TCA_CBQ_MAX - 1)

Definition at line 471 of file pkt_sched.h.

#define TCA_CHOKE_MAX   (__TCA_CHOKE_MAX - 1)

Definition at line 302 of file pkt_sched.h.

#define TCA_CODEL_MAX   (__TCA_CODEL_MAX - 1)

Definition at line 669 of file pkt_sched.h.

#define TCA_DRR_MAX   (__TCA_DRR_MAX - 1)

Definition at line 586 of file pkt_sched.h.

#define TCA_DSMARK_MAX   (__TCA_DSMARK_MAX - 1)

Definition at line 485 of file pkt_sched.h.

#define TCA_FQ_CODEL_MAX   (__TCA_FQ_CODEL_MAX - 1)

Definition at line 697 of file pkt_sched.h.

#define TCA_GRED_MAX   (__TCA_GRED_MAX - 1)

Definition at line 262 of file pkt_sched.h.

#define TCA_HFSC_MAX   (__TCA_HFSC_MAX - 1)

Definition at line 391 of file pkt_sched.h.

#define TCA_HTB_MAX   (__TCA_HTB_MAX - 1)

Definition at line 354 of file pkt_sched.h.

#define TCA_NETEM_MAX   (__TCA_NETEM_MAX - 1)

Definition at line 516 of file pkt_sched.h.

#define TCA_QFQ_MAX   (__TCA_QFQ_MAX - 1)

Definition at line 651 of file pkt_sched.h.

#define TCA_RED_MAX   (__TCA_RED_MAX - 1)

Definition at line 227 of file pkt_sched.h.

#define TCA_SFB_MAX   (__TCA_SFB_MAX - 1)

Definition at line 612 of file pkt_sched.h.

#define TCA_STAB_MAX   (__TCA_STAB_MAX - 1)

Definition at line 105 of file pkt_sched.h.

#define TCA_TBF_MAX   (__TCA_TBF_MAX - 1)

Definition at line 169 of file pkt_sched.h.

#define TCF_CBQ_LSS_AVPKT   0x20

Definition at line 412 of file pkt_sched.h.

#define TCF_CBQ_LSS_BOUNDED   1

Definition at line 403 of file pkt_sched.h.

#define TCF_CBQ_LSS_EWMA   2

Definition at line 408 of file pkt_sched.h.

#define TCF_CBQ_LSS_FLAGS   1

Definition at line 407 of file pkt_sched.h.

#define TCF_CBQ_LSS_ISOLATED   2

Definition at line 404 of file pkt_sched.h.

#define TCF_CBQ_LSS_MAXIDLE   4

Definition at line 409 of file pkt_sched.h.

#define TCF_CBQ_LSS_MINIDLE   8

Definition at line 410 of file pkt_sched.h.

#define TCF_CBQ_LSS_OFFTIME   0x10

Definition at line 411 of file pkt_sched.h.

#define TCQ_MIN_PRIO_BANDS   2

Definition at line 116 of file pkt_sched.h.

#define TCQ_PLUG_BUFFER   0

Definition at line 132 of file pkt_sched.h.

#define TCQ_PLUG_LIMIT   3

Definition at line 135 of file pkt_sched.h.

#define TCQ_PLUG_RELEASE_INDEFINITE   2

Definition at line 134 of file pkt_sched.h.

#define TCQ_PLUG_RELEASE_ONE   1

Definition at line 133 of file pkt_sched.h.

#define TCQ_PRIO_BANDS   16

Definition at line 115 of file pkt_sched.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
TCA_STAB_UNSPEC 
TCA_STAB_BASE 
TCA_STAB_DATA 
__TCA_STAB_MAX 

Definition at line 98 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_TBF_UNSPEC 
TCA_TBF_PARMS 
TCA_TBF_RTAB 
TCA_TBF_PTAB 
__TCA_TBF_MAX 

Definition at line 161 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_RED_UNSPEC 
TCA_RED_PARMS 
TCA_RED_STAB 
TCA_RED_MAX_P 
__TCA_RED_MAX 

Definition at line 219 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_GRED_UNSPEC 
TCA_GRED_PARMS 
TCA_GRED_STAB 
TCA_GRED_DPS 
TCA_GRED_MAX_P 
__TCA_GRED_MAX 

Definition at line 253 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_CHOKE_UNSPEC 
TCA_CHOKE_PARMS 
TCA_CHOKE_STAB 
TCA_CHOKE_MAX_P 
__TCA_CHOKE_MAX 

Definition at line 294 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_HTB_UNSPEC 
TCA_HTB_PARMS 
TCA_HTB_INIT 
TCA_HTB_CTAB 
TCA_HTB_RTAB 
__TCA_HTB_MAX 

Definition at line 345 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_HFSC_UNSPEC 
TCA_HFSC_RSC 
TCA_HFSC_FSC 
TCA_HFSC_USC 
__TCA_HFSC_MAX 

Definition at line 383 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_CBQ_UNSPEC 
TCA_CBQ_LSSOPT 
TCA_CBQ_WRROPT 
TCA_CBQ_FOPT 
TCA_CBQ_OVL_STRATEGY 
TCA_CBQ_RATE 
TCA_CBQ_RTAB 
TCA_CBQ_POLICE 
__TCA_CBQ_MAX 

Definition at line 459 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_DSMARK_UNSPEC 
TCA_DSMARK_INDICES 
TCA_DSMARK_DEFAULT_INDEX 
TCA_DSMARK_SET_TC_INDEX 
TCA_DSMARK_MASK 
TCA_DSMARK_VALUE 
__TCA_DSMARK_MAX 

Definition at line 475 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_ATM_UNSPEC 
TCA_ATM_FD 
TCA_ATM_PTR 
TCA_ATM_HDR 
TCA_ATM_EXCESS 
TCA_ATM_ADDR 
TCA_ATM_STATE 
__TCA_ATM_MAX 

Definition at line 489 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_NETEM_UNSPEC 
TCA_NETEM_CORR 
TCA_NETEM_DELAY_DIST 
TCA_NETEM_REORDER 
TCA_NETEM_CORRUPT 
TCA_NETEM_LOSS 
TCA_NETEM_RATE 
TCA_NETEM_ECN 
__TCA_NETEM_MAX 

Definition at line 504 of file pkt_sched.h.

anonymous enum
Enumerator:
NETEM_LOSS_UNSPEC 
NETEM_LOSS_GI 
NETEM_LOSS_GE 
__NETEM_LOSS_MAX 

Definition at line 550 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_DRR_UNSPEC 
TCA_DRR_QUANTUM 
__TCA_DRR_MAX 

Definition at line 580 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_SFB_UNSPEC 
TCA_SFB_PARMS 
__TCA_SFB_MAX 

Definition at line 606 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_QFQ_UNSPEC 
TCA_QFQ_WEIGHT 
TCA_QFQ_LMAX 
__TCA_QFQ_MAX 

Definition at line 644 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_CODEL_UNSPEC 
TCA_CODEL_TARGET 
TCA_CODEL_LIMIT 
TCA_CODEL_INTERVAL 
TCA_CODEL_ECN 
__TCA_CODEL_MAX 

Definition at line 660 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_FQ_CODEL_UNSPEC 
TCA_FQ_CODEL_TARGET 
TCA_FQ_CODEL_LIMIT 
TCA_FQ_CODEL_INTERVAL 
TCA_FQ_CODEL_ECN 
TCA_FQ_CODEL_FLOWS 
TCA_FQ_CODEL_QUANTUM 
__TCA_FQ_CODEL_MAX 

Definition at line 686 of file pkt_sched.h.

anonymous enum
Enumerator:
TCA_FQ_CODEL_XSTATS_QDISC 
TCA_FQ_CODEL_XSTATS_CLASS 

Definition at line 699 of file pkt_sched.h.