]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - tc/tc_core.h
Switch helpers tc_core_{time2ktime,ktime2time} from long to unsigned as well.
[lisovros/iproute2_canprio.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 #define TIME_UNITS_PER_SEC      1000000
8
9 int  tc_core_time2big(long time);
10 unsigned tc_core_time2tick(unsigned time);
11 unsigned tc_core_tick2time(unsigned tick);
12 unsigned tc_core_time2ktime(unsigned time);
13 unsigned tc_core_ktime2time(unsigned ktime);
14 unsigned tc_calc_xmittime(unsigned rate, unsigned size);
15 unsigned tc_calc_xmitsize(unsigned rate, unsigned ticks);
16 int tc_calc_rtable(unsigned bps, __u32 *rtab, int cell_log, unsigned mtu, unsigned mpu);
17
18 int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est);
19
20 int tc_core_init(void);
21
22 extern struct rtnl_handle g_rth;
23 extern int is_batch_mode;
24
25 #endif