]> git.proxmox.com Git - mirror_iproute2.git/blame - tc/tc_core.h
iproute: Set ip/ip6 lwtunnel flags
[mirror_iproute2.git] / tc / tc_core.h
CommitLineData
6054c1eb 1/* SPDX-License-Identifier: GPL-2.0 */
aba5acdf
SH
2#ifndef _TC_CORE_H_
3#define _TC_CORE_H_ 1
4
5#include <asm/types.h>
6#include <linux/pkt_sched.h>
7
292f29b4 8enum link_layer {
839c8456
JK
9 LINKLAYER_UNSPEC,
10 LINKLAYER_ETHERNET,
11 LINKLAYER_ATM,
292f29b4
JDB
12};
13
14
64e2ad59 15int tc_core_time2big(unsigned time);
44759844
AH
16unsigned tc_core_time2tick(unsigned time);
17unsigned tc_core_tick2time(unsigned tick);
57a800d4
AH
18unsigned tc_core_time2ktime(unsigned time);
19unsigned tc_core_ktime2time(unsigned ktime);
8334bb32
ED
20unsigned tc_calc_xmittime(__u64 rate, unsigned size);
21unsigned tc_calc_xmitsize(__u64 rate, unsigned ticks);
292f29b4
JDB
22int tc_calc_rtable(struct tc_ratespec *r, __u32 *rtab,
23 int cell_log, unsigned mtu, enum link_layer link_layer);
839c8456 24int tc_calc_size_table(struct tc_sizespec *s, __u16 **stab);
aba5acdf
SH
25
26int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est);
27
28int tc_core_init(void);
29
38c7e2e6 30extern struct rtnl_handle g_rth;
31extern int is_batch_mode;
32
aba5acdf 33#endif