Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
sch_qfq.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/pkt_sched.h>
#include <net/sch_generic.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>

Go to the source code of this file.

Data Structures

struct  qfq_class
 
struct  qfq_group
 
struct  qfq_sched
 

Macros

#define QFQ_MAX_SLOTS   32
 
#define QFQ_MAX_INDEX   24
 
#define QFQ_MAX_WSHIFT   12
 
#define QFQ_MAX_WEIGHT   (1<<QFQ_MAX_WSHIFT)
 
#define QFQ_MAX_WSUM   (16*QFQ_MAX_WEIGHT)
 
#define FRAC_BITS   30 /* fixed point arithmetic */
 
#define ONE_FP   (1UL << FRAC_BITS)
 
#define IWSUM   (ONE_FP/QFQ_MAX_WSUM)
 
#define QFQ_MTU_SHIFT   16 /* to support TSO/GSO */
 
#define QFQ_MIN_SLOT_SHIFT   (FRAC_BITS + QFQ_MTU_SHIFT - QFQ_MAX_INDEX)
 
#define QFQ_MIN_LMAX   256 /* min possible lmax for a class */
 

Enumerations

enum  qfq_state {
  ER, IR, EB, IB,
  QFQ_MAX_STATE
}
 

Functions

 module_init (qfq_init)
 
 module_exit (qfq_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define FRAC_BITS   30 /* fixed point arithmetic */

Definition at line 93 of file sch_qfq.c.

#define IWSUM   (ONE_FP/QFQ_MAX_WSUM)

Definition at line 95 of file sch_qfq.c.

#define ONE_FP   (1UL << FRAC_BITS)

Definition at line 94 of file sch_qfq.c.

#define QFQ_MAX_INDEX   24

Definition at line 87 of file sch_qfq.c.

#define QFQ_MAX_SLOTS   32

Definition at line 76 of file sch_qfq.c.

#define QFQ_MAX_WEIGHT   (1<<QFQ_MAX_WSHIFT)

Definition at line 90 of file sch_qfq.c.

#define QFQ_MAX_WSHIFT   12

Definition at line 88 of file sch_qfq.c.

#define QFQ_MAX_WSUM   (16*QFQ_MAX_WEIGHT)

Definition at line 91 of file sch_qfq.c.

#define QFQ_MIN_LMAX   256 /* min possible lmax for a class */

Definition at line 99 of file sch_qfq.c.

#define QFQ_MIN_SLOT_SHIFT   (FRAC_BITS + QFQ_MTU_SHIFT - QFQ_MAX_INDEX)

Definition at line 98 of file sch_qfq.c.

#define QFQ_MTU_SHIFT   16 /* to support TSO/GSO */

Definition at line 97 of file sch_qfq.c.

Enumeration Type Documentation

enum qfq_state
Enumerator:
ER 
IR 
EB 
IB 
QFQ_MAX_STATE 

Definition at line 105 of file sch_qfq.c.

Function Documentation

module_exit ( qfq_exit  )
module_init ( qfq_init  )
MODULE_LICENSE ( "GPL"  )