Tagging module iproute2 - iproute2-2.6.16-2
[iproute2.git] / tc / tc_core.h
1 #ifndef _TC_CORE_H_
2 #define _TC_CORE_H_ 1
3
4 #include <asm/types.h>
5 #include <linux/pkt_sched.h>
6
7 long tc_core_usec2tick(long usec);
8 long tc_core_tick2usec(long tick);
9 unsigned tc_calc_xmittime(unsigned rate, unsigned size);
10 int tc_calc_rtable(unsigned bps, __u32 *rtab, int cell_log, unsigned mtu, unsigned mpu);
11
12 int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est);
13
14 int tc_core_init(void);
15
16 extern struct rtnl_handle g_rth;
17 extern int is_batch_mode;
18
19 #endif