]>
git.proxmox.com Git - mirror_iproute2.git/blob - tc/tc_core.h
1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <linux/pkt_sched.h>
8 #define TIME_UNITS_PER_SEC 1000000
17 int tc_core_time2big(unsigned time
);
18 unsigned tc_core_time2tick(unsigned time
);
19 unsigned tc_core_tick2time(unsigned tick
);
20 unsigned tc_core_time2ktime(unsigned time
);
21 unsigned tc_core_ktime2time(unsigned ktime
);
22 unsigned tc_calc_xmittime(__u64 rate
, unsigned size
);
23 unsigned tc_calc_xmitsize(__u64 rate
, unsigned ticks
);
24 int tc_calc_rtable(struct tc_ratespec
*r
, __u32
*rtab
,
25 int cell_log
, unsigned mtu
, enum link_layer link_layer
);
26 int tc_calc_size_table(struct tc_sizespec
*s
, __u16
**stab
);
28 int tc_setup_estimator(unsigned A
, unsigned time_const
, struct tc_estimator
*est
);
30 int tc_core_init(void);
32 extern struct rtnl_handle g_rth
;
33 extern int is_batch_mode
;