]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/m_police.c
Introduce tc_calc_xmitsize and use where appropriate
authorPatrick McHardy <kaber@trash.net>
Sun, 4 Mar 2007 19:14:57 +0000 (20:14 +0100)
committerStephen Hemminger <shemminger@linux-foundation.org>
Tue, 13 Mar 2007 21:42:15 +0000 (14:42 -0700)
commit76dc0aa28fe6fa78e263bf0250c1e42c584dd544
tree50daaa40b4f69377b9a1dad82373c84b69efa061
parent476daa7278aaf324f6cef27981f81187afce8836
Introduce tc_calc_xmitsize and use where appropriate

[IPROUTE]: Introduce tc_calc_xmitsize and use where appropriate

Add tc_calc_xmitsize() as complement to tc_calc_xmittime(), which calculates
the size that can be transmitted at a given rate during a given time.

Replace all expressions of the form "size = rate*tc_core_tick2usec(time))/1000000"
by tc_calc_xmitsize() calls.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tc/m_police.c
tc/q_htb.c
tc/q_tbf.c
tc/tc_core.c
tc/tc_core.h