Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

estimator.c File Reference

#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/in.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <net/sock.h>
#include <net/pkt_sched.h>

Include dependency graph for estimator.c:

Go to the source code of this file.

Defines

#define EST_MAX_INTERVAL   5

Functions

static void est_timer (unsigned long arg)
int qdisc_new_estimator (struct tc_stats *stats, struct rtattr *opt)
void qdisc_kill_estimator (struct tc_stats *stats)

Variables

static struct qdisc_estimator_head elist [EST_MAX_INTERVAL+1]


Define Documentation

#define EST_MAX_INTERVAL   5
 

Definition at line 78 of file estimator.c.


Function Documentation

static void est_timer unsigned long  arg  )  [static]
 

Definition at line 100 of file estimator.c.

References add_timer(), qdisc_estimator::avbps, qdisc_estimator::avpps, tc_stats::bps, tc_stats::bytes, e, qdisc_estimator::ewma_log, timer_list::expires, HZ, jiffies, qdisc_estimator::last_bytes, qdisc_estimator::last_packets, long, qdisc_estimator::next, tc_stats::packets, tc_stats::pps, rate, qdisc_estimator::stats, timer, qdisc_estimator_head::timer, and u32.

Referenced by qdisc_new_estimator().

Here is the call graph for this function:

void qdisc_kill_estimator struct tc_stats stats  ) 
 

Definition at line 161 of file estimator.c.

References del_timer(), kfree(), qdisc_estimator_head::list, qdisc_estimator::next, NULL, qdisc_estimator::stats, synchronize_bh, and timer.

Referenced by cbq_change_class(), cbq_destroy_class(), qdisc_destroy(), and tcf_police_destroy().

Here is the call graph for this function:

int qdisc_new_estimator struct tc_stats stats,
struct rtattr opt
 

Definition at line 125 of file estimator.c.

References add_timer(), tc_stats::bps, tc_stats::bytes, EINVAL, ENOBUFS, est_timer(), HZ, init_timer(), jiffies, kmalloc(), qdisc_estimator_head::list, memset, NULL, tc_stats::packets, parm, tc_stats::pps, RTA_DATA, RTA_PAYLOAD, and qdisc_estimator_head::timer.

Referenced by cbq_change_class(), and tcf_police_locate().

Here is the call graph for this function:


Variable Documentation

struct qdisc_estimator_head elist[EST_MAX_INTERVAL+1] [static]
 

Definition at line 98 of file estimator.c.