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

Go to the source code of this file.

Data Structures

struct  qdisc_walker
 
struct  qdisc_watchdog
 

Macros

#define QDISC_ALIGNTO   64
 
#define QDISC_ALIGN(len)   (((len) + QDISC_ALIGNTO-1) & ~(QDISC_ALIGNTO-1))
 
#define PSCHED_SHIFT   6
 
#define PSCHED_TICKS2NS(x)   ((s64)(x) << PSCHED_SHIFT)
 
#define PSCHED_NS2TICKS(x)   ((x) >> PSCHED_SHIFT)
 
#define PSCHED_TICKS_PER_SEC   PSCHED_NS2TICKS(NSEC_PER_SEC)
 
#define PSCHED_PASTPERFECT   0
 

Typedefs

typedef u64 psched_time_t
 
typedef long psched_tdiff_t
 

Functions

void qdisc_watchdog_init (struct qdisc_watchdog *wd, struct Qdisc *qdisc)
 
void qdisc_watchdog_schedule (struct qdisc_watchdog *wd, psched_time_t expires)
 
void qdisc_watchdog_cancel (struct qdisc_watchdog *wd)
 
int fifo_set_limit (struct Qdisc *q, unsigned int limit)
 
struct Qdiscfifo_create_dflt (struct Qdisc *sch, struct Qdisc_ops *ops, unsigned int limit)
 
int register_qdisc (struct Qdisc_ops *qops)
 
int unregister_qdisc (struct Qdisc_ops *qops)
 
void qdisc_list_del (struct Qdisc *q)
 
struct Qdiscqdisc_lookup (struct net_device *dev, u32 handle)
 
struct Qdiscqdisc_lookup_class (struct net_device *dev, u32 handle)
 
struct qdisc_rate_tableqdisc_get_rtab (struct tc_ratespec *r, struct nlattr *tab)
 
void qdisc_put_rtab (struct qdisc_rate_table *tab)
 
void qdisc_put_stab (struct qdisc_size_table *tab)
 
void qdisc_warn_nonwc (char *txt, struct Qdisc *qdisc)
 
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)
 
int tc_classify_compat (struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res)
 
int tc_classify (struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res)
 

Variables

struct Qdisc_ops pfifo_qdisc_ops
 
struct Qdisc_ops bfifo_qdisc_ops
 
struct Qdisc_ops pfifo_head_drop_qdisc_ops
 

Macro Definition Documentation

#define PSCHED_NS2TICKS (   x)    ((x) >> PSCHED_SHIFT)

Definition at line 46 of file pkt_sched.h.

#define PSCHED_PASTPERFECT   0

Definition at line 49 of file pkt_sched.h.

#define PSCHED_SHIFT   6

Definition at line 44 of file pkt_sched.h.

#define PSCHED_TICKS2NS (   x)    ((s64)(x) << PSCHED_SHIFT)

Definition at line 45 of file pkt_sched.h.

#define PSCHED_TICKS_PER_SEC   PSCHED_NS2TICKS(NSEC_PER_SEC)

Definition at line 48 of file pkt_sched.h.

#define QDISC_ALIGN (   len)    (((len) + QDISC_ALIGNTO-1) & ~(QDISC_ALIGNTO-1))

Definition at line 16 of file pkt_sched.h.

#define QDISC_ALIGNTO   64

Definition at line 15 of file pkt_sched.h.

Typedef Documentation

Definition at line 41 of file pkt_sched.h.

typedef u64 psched_time_t

Definition at line 40 of file pkt_sched.h.

Function Documentation

void __qdisc_run ( struct Qdisc q)

Definition at line 189 of file sch_generic.c.

struct Qdisc* fifo_create_dflt ( struct Qdisc sch,
struct Qdisc_ops ops,
unsigned int  limit 
)
read

Definition at line 163 of file sch_fifo.c.

int fifo_set_limit ( struct Qdisc q,
unsigned int  limit 
)

Definition at line 141 of file sch_fifo.c.

struct qdisc_rate_table* qdisc_get_rtab ( struct tc_ratespec r,
struct nlattr tab 
)
read

Definition at line 290 of file sch_api.c.

void qdisc_list_del ( struct Qdisc q)

Definition at line 228 of file sch_api.c.

struct Qdisc* qdisc_lookup ( struct net_device dev,
u32  handle 
)
read

Definition at line 235 of file sch_api.c.

struct Qdisc* qdisc_lookup_class ( struct net_device dev,
u32  handle 
)
read
void qdisc_put_rtab ( struct qdisc_rate_table tab)

Definition at line 317 of file sch_api.c.

void qdisc_put_stab ( struct qdisc_size_table tab)

Definition at line 406 of file sch_api.c.

void qdisc_warn_nonwc ( char txt,
struct Qdisc qdisc 
)

Definition at line 467 of file sch_api.c.

void qdisc_watchdog_cancel ( struct qdisc_watchdog wd)

Definition at line 511 of file sch_api.c.

void qdisc_watchdog_init ( struct qdisc_watchdog wd,
struct Qdisc qdisc 
)

Definition at line 488 of file sch_api.c.

void qdisc_watchdog_schedule ( struct qdisc_watchdog wd,
psched_time_t  expires 
)

Definition at line 496 of file sch_api.c.

int register_qdisc ( struct Qdisc_ops qops)

Definition at line 140 of file sch_api.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.

int tc_classify ( struct sk_buff skb,
const struct tcf_proto tp,
struct tcf_result res 
)

Definition at line 1682 of file sch_api.c.

int tc_classify_compat ( struct sk_buff skb,
const struct tcf_proto tp,
struct tcf_result res 
)

Definition at line 1658 of file sch_api.c.

int unregister_qdisc ( struct Qdisc_ops qops)

Definition at line 184 of file sch_api.c.

Variable Documentation

struct Qdisc_ops bfifo_qdisc_ops
struct Qdisc_ops pfifo_head_drop_qdisc_ops
struct Qdisc_ops pfifo_qdisc_ops