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

Go to the source code of this file.

Data Structures

struct  qdisc_rate_table
 
struct  qdisc_size_table
 
struct  Qdisc
 
struct  Qdisc_class_ops
 
struct  Qdisc_ops
 
struct  tcf_result
 
struct  tcf_proto_ops
 
struct  tcf_proto
 
struct  qdisc_skb_cb
 
struct  Qdisc_class_common
 
struct  Qdisc_class_hash
 

Macros

#define TCQ_F_BUILTIN   1
 
#define TCQ_F_INGRESS   2
 
#define TCQ_F_CAN_BYPASS   4
 
#define TCQ_F_MQROOT   8
 
#define TCQ_F_WARN_NONWC   (1 << 16)
 
#define tcf_tree_lock(tp)   sch_tree_lock((tp)->q)
 
#define tcf_tree_unlock(tp)   sch_tree_unlock((tp)->q)
 
#define net_xmit_drop_count(e)   (1)
 

Enumerations

enum  qdisc_state_t { __QDISC_STATE_SCHED, __QDISC_STATE_DEACTIVATED, __QDISC_STATE_THROTTLED }
 
enum  qdisc___state_t { __QDISC___STATE_RUNNING = 1 }
 
enum  net_xmit_qdisc_t { __NET_XMIT_STOLEN = 0x00010000, __NET_XMIT_BYPASS = 0x00020000 }
 

Functions

int qdisc_class_hash_init (struct Qdisc_class_hash *)
 
void qdisc_class_hash_insert (struct Qdisc_class_hash *, struct Qdisc_class_common *)
 
void qdisc_class_hash_remove (struct Qdisc_class_hash *, struct Qdisc_class_common *)
 
void qdisc_class_hash_grow (struct Qdisc *, struct Qdisc_class_hash *)
 
void qdisc_class_hash_destroy (struct Qdisc_class_hash *)
 
void dev_init_scheduler (struct net_device *dev)
 
void dev_shutdown (struct net_device *dev)
 
void dev_activate (struct net_device *dev)
 
void dev_deactivate (struct net_device *dev)
 
void dev_deactivate_many (struct list_head *head)
 
struct Qdiscdev_graft_qdisc (struct netdev_queue *dev_queue, struct Qdisc *qdisc)
 
void qdisc_reset (struct Qdisc *qdisc)
 
void qdisc_destroy (struct Qdisc *qdisc)
 
void qdisc_tree_decrease_qlen (struct Qdisc *qdisc, unsigned int n)
 
struct Qdiscqdisc_alloc (struct netdev_queue *dev_queue, struct Qdisc_ops *ops)
 
struct Qdiscqdisc_create_dflt (struct netdev_queue *dev_queue, struct Qdisc_ops *ops, u32 parentid)
 
void __qdisc_calculate_pkt_len (struct sk_buff *skb, const struct qdisc_size_table *stab)
 
void tcf_destroy (struct tcf_proto *tp)
 
void tcf_destroy_chain (struct tcf_proto **fl)
 

Variables

struct Qdisc noop_qdisc
 
struct Qdisc_ops noop_qdisc_ops
 
struct Qdisc_ops pfifo_fast_ops
 
struct Qdisc_ops mq_qdisc_ops
 

Macro Definition Documentation

#define net_xmit_drop_count (   e)    (1)

Definition at line 443 of file sch_generic.h.

#define tcf_tree_lock (   tp)    sch_tree_lock((tp)->q)

Definition at line 304 of file sch_generic.h.

#define tcf_tree_unlock (   tp)    sch_tree_unlock((tp)->q)

Definition at line 305 of file sch_generic.h.

#define TCQ_F_BUILTIN   1

Definition at line 49 of file sch_generic.h.

#define TCQ_F_CAN_BYPASS   4

Definition at line 51 of file sch_generic.h.

#define TCQ_F_INGRESS   2

Definition at line 50 of file sch_generic.h.

#define TCQ_F_MQROOT   8

Definition at line 52 of file sch_generic.h.

#define TCQ_F_WARN_NONWC   (1 << 16)

Definition at line 53 of file sch_generic.h.

Enumeration Type Documentation

Enumerator:
__NET_XMIT_STOLEN 
__NET_XMIT_BYPASS 

Definition at line 435 of file sch_generic.h.

Enumerator:
__QDISC___STATE_RUNNING 

Definition at line 33 of file sch_generic.h.

Enumerator:
__QDISC_STATE_SCHED 
__QDISC_STATE_DEACTIVATED 
__QDISC_STATE_THROTTLED 

Definition at line 24 of file sch_generic.h.

Function Documentation

void __qdisc_calculate_pkt_len ( struct sk_buff skb,
const struct qdisc_size_table stab 
)

Definition at line 439 of file sch_api.c.

void dev_activate ( struct net_device dev)

Definition at line 730 of file sch_generic.c.

void dev_deactivate ( struct net_device dev)

Definition at line 843 of file sch_generic.c.

void dev_deactivate_many ( struct list_head head)

dev_deactivate_many - deactivate transmissions on several devices : list of devices to deactivate

This function returns only when all outstanding transmissions have completed, unless all devices are in dismantle phase.

Definition at line 814 of file sch_generic.c.

struct Qdisc* dev_graft_qdisc ( struct netdev_queue dev_queue,
struct Qdisc qdisc 
)
read

Definition at line 651 of file sch_generic.c.

void dev_init_scheduler ( struct net_device dev)

Definition at line 863 of file sch_generic.c.

void dev_shutdown ( struct net_device dev)

Definition at line 888 of file sch_generic.c.

struct Qdisc* qdisc_alloc ( struct netdev_queue dev_queue,
struct Qdisc_ops ops 
)
read

Definition at line 532 of file sch_generic.c.

void qdisc_class_hash_destroy ( struct Qdisc_class_hash )

Definition at line 596 of file sch_api.c.

void qdisc_class_hash_grow ( struct Qdisc ,
struct Qdisc_class_hash  
)

Definition at line 546 of file sch_api.c.

int qdisc_class_hash_init ( struct Qdisc_class_hash )

Definition at line 582 of file sch_api.c.

void qdisc_class_hash_insert ( struct Qdisc_class_hash ,
struct Qdisc_class_common  
)

Definition at line 602 of file sch_api.c.

void qdisc_class_hash_remove ( struct Qdisc_class_hash ,
struct Qdisc_class_common  
)

Definition at line 614 of file sch_api.c.

struct Qdisc* qdisc_create_dflt ( struct netdev_queue dev_queue,
struct Qdisc_ops ops,
u32  parentid 
)
read

Definition at line 576 of file sch_generic.c.

void qdisc_destroy ( struct Qdisc qdisc)

Definition at line 619 of file sch_generic.c.

void qdisc_reset ( struct Qdisc qdisc)

Definition at line 597 of file sch_generic.c.

void qdisc_tree_decrease_qlen ( struct Qdisc qdisc,
unsigned int  n 
)

Definition at line 642 of file sch_api.c.

void tcf_destroy ( struct tcf_proto tp)

Definition at line 1712 of file sch_api.c.

void tcf_destroy_chain ( struct tcf_proto **  fl)

Definition at line 1719 of file sch_api.c.

Variable Documentation

struct Qdisc_ops mq_qdisc_ops
struct Qdisc noop_qdisc

Definition at line 357 of file sch_generic.c.

struct Qdisc_ops noop_qdisc_ops
struct Qdisc_ops pfifo_fast_ops