Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sch_generic.c File Reference
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/init.h>
#include <linux/rcupdate.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <net/pkt_sched.h>
#include <net/dst.h>

Go to the source code of this file.

Data Structures

struct  pfifo_fast_priv
 

Macros

#define PFIFO_FAST_BANDS   3
 

Functions

int sch_direct_xmit (struct sk_buff *skb, struct Qdisc *q, struct net_device *dev, struct netdev_queue *txq, spinlock_t *root_lock)
 
void __qdisc_run (struct Qdisc *q)
 
unsigned long dev_trans_start (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_trans_start)
 
void __netdev_watchdog_up (struct net_device *dev)
 
void netif_carrier_on (struct net_device *dev)
 
 EXPORT_SYMBOL (netif_carrier_on)
 
void netif_carrier_off (struct net_device *dev)
 
 EXPORT_SYMBOL (netif_carrier_off)
 
 EXPORT_SYMBOL (noop_qdisc)
 
 EXPORT_SYMBOL (pfifo_fast_ops)
 
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, unsigned int parentid)
 
 EXPORT_SYMBOL (qdisc_create_dflt)
 
void qdisc_reset (struct Qdisc *qdisc)
 
 EXPORT_SYMBOL (qdisc_reset)
 
void qdisc_destroy (struct Qdisc *qdisc)
 
 EXPORT_SYMBOL (qdisc_destroy)
 
struct Qdiscdev_graft_qdisc (struct netdev_queue *dev_queue, struct Qdisc *qdisc)
 
 EXPORT_SYMBOL (dev_graft_qdisc)
 
void dev_activate (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_activate)
 
void dev_deactivate_many (struct list_head *head)
 
void dev_deactivate (struct net_device *dev)
 
 EXPORT_SYMBOL (dev_deactivate)
 
void dev_init_scheduler (struct net_device *dev)
 
void dev_shutdown (struct net_device *dev)
 

Variables

struct Qdisc_ops noop_qdisc_ops __read_mostly
 
struct Qdisc noop_qdisc
 

Macro Definition Documentation

#define PFIFO_FAST_BANDS   3

Definition at line 404 of file sch_generic.c.

Function Documentation

void __netdev_watchdog_up ( struct net_device dev)

Definition at line 269 of file sch_generic.c.

void __qdisc_run ( struct Qdisc q)

Definition at line 189 of file sch_generic.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.

unsigned long dev_trans_start ( struct net_device dev)

Definition at line 208 of file sch_generic.c.

EXPORT_SYMBOL ( dev_trans_start  )
EXPORT_SYMBOL ( netif_carrier_on  )
EXPORT_SYMBOL ( netif_carrier_off  )
EXPORT_SYMBOL ( noop_qdisc  )
EXPORT_SYMBOL ( pfifo_fast_ops  )
EXPORT_SYMBOL ( qdisc_create_dflt  )
EXPORT_SYMBOL ( qdisc_reset  )
EXPORT_SYMBOL ( qdisc_destroy  )
EXPORT_SYMBOL ( dev_graft_qdisc  )
EXPORT_SYMBOL ( dev_activate  )
EXPORT_SYMBOL ( dev_deactivate  )
void netif_carrier_off ( struct net_device dev)

netif_carrier_off - clear carrier : network device

Device has detected loss of carrier.

Definition at line 317 of file sch_generic.c.

void netif_carrier_on ( struct net_device dev)

netif_carrier_on - set carrier : network device

Device has detected that carrier.

Definition at line 299 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.

struct Qdisc* qdisc_create_dflt ( struct netdev_queue dev_queue,
struct Qdisc_ops ops,
unsigned int  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.

int sch_direct_xmit ( struct sk_buff skb,
struct Qdisc q,
struct net_device dev,
struct netdev_queue txq,
spinlock_t root_lock 
)

Definition at line 113 of file sch_generic.c.

Variable Documentation

Initial value:
= {
.id = "noop",
.priv_size = 0,
.enqueue = noop_enqueue,
.dequeue = noop_dequeue,
.peek = noop_dequeue,
.owner = THIS_MODULE,
}

Definition at line 343 of file sch_generic.c.

struct Qdisc noop_qdisc
Initial value:
= {
.enqueue = noop_enqueue,
.dequeue = noop_dequeue,
.flags = TCQ_F_BUILTIN,
.ops = &noop_qdisc_ops,
.list = LIST_HEAD_INIT(noop_qdisc.list),
.q.lock = __SPIN_LOCK_UNLOCKED(noop_qdisc.q.lock),
.dev_queue = &noop_netdev_queue,
.busylock = __SPIN_LOCK_UNLOCKED(noop_qdisc.busylock),
}

Definition at line 357 of file sch_generic.c.