mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 19:02:41 +00:00

This reverts fd784ccaf6
commit.
Thanks Stephen, but actually I think the last patch (increase clock
resolution) shouldn't go in yet. I'm not done yet looking at all
the compatibility issues and it does change the range of valid
values for everything dealing with times. Most places I looked
at still accept reasonable ranges, but I would feel more comfortable
to make sure everything is fine first.
26 lines
690 B
C
26 lines
690 B
C
#ifndef _TC_CORE_H_
|
|
#define _TC_CORE_H_ 1
|
|
|
|
#include <asm/types.h>
|
|
#include <linux/pkt_sched.h>
|
|
|
|
#define TIME_UNITS_PER_SEC 1000000
|
|
|
|
int tc_core_time2big(long time);
|
|
long tc_core_time2tick(long time);
|
|
long tc_core_tick2time(long tick);
|
|
long tc_core_time2ktime(long time);
|
|
long tc_core_ktime2time(long ktime);
|
|
unsigned tc_calc_xmittime(unsigned rate, unsigned size);
|
|
unsigned tc_calc_xmitsize(unsigned rate, unsigned ticks);
|
|
int tc_calc_rtable(unsigned bps, __u32 *rtab, int cell_log, unsigned mtu, unsigned mpu);
|
|
|
|
int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est);
|
|
|
|
int tc_core_init(void);
|
|
|
|
extern struct rtnl_handle g_rth;
|
|
extern int is_batch_mode;
|
|
|
|
#endif
|