History log of /external/iproute2/tc/q_cbq.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d8de1139c95d79bc1b5ac1ec301a30ef5e6ee50 12-Jan-2010 Florian Westphal <fw@strlen.de> tc: remove stale code

remove unused #define and "ok" statements.

Signed-off-by: Florian Westphal <fwestphal@astaro.com>
/external/iproute2/tc/q_cbq.c
292f29b42c3444375b5ae7086484c99da7129d94 09-Apr-2008 Jesper Dangaard Brouer <hawk@diku.dk> ATM cell alignment.

Introducing the function that does the ATM cell alignment, and
modifying tc_calc_rtable() to use this based upon a linklayer
parameter.

Modified from original to use constants from atm.h and
fix all the usages of rtable in same patch.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
/external/iproute2/tc/q_cbq.c
2a1f78b376cc81ba8eb19f6bacc38aad4f09fc62 23-Mar-2008 Jesper Dangaard Brouer <jdb@comx.dk> CBQ, doc usage of overhead parameter.

CBQ remember to doc usage of overhead parameter.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/q_cbq.c
08fd01843f26beccc734bbd4d8b103327b7be39e 23-Mar-2008 Jesper Dangaard Brouer <jdb@comx.dk> CBQ, implement overhead parameter parsing.

For CBQ, implement overhead parameter parsing.

The change is ABI (Application Binary Interface) backward compatible
with older kernels, but will first have effect from kernel 2.6.24.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/q_cbq.c
1db5e2ec13402a54aa40b518a5d07dc4a45746ca 23-Mar-2008 Jesper Dangaard Brouer <jdb@comx.dk> CBQ use matches() function instead of strcmp().

Change CBQ to use matches() function instead of strcmp().

This resembels the usage in other parse functions, and allows
partial command parameter matching.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/q_cbq.c
d5f46f9cc3856af532e852ef29fd7ddfd141faf0 05-Sep-2007 Jesper Dangaard Brouer <hawk@comx.dk> Cleanup: tc_calc_rtable().

Change tc_calc_rtable() to take a tc_ratespec struct as an
argument. (cell_log still needs to be passed on as a parameter,
because -1 indicate that the cell_log needs to be computed by the
function.).

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/q_cbq.c
bd29e35d9de9dc0b9015dd3a178ee2c716ce8301 04-Mar-2007 Patrick McHardy <kaber@trash.net> Add sprint_ticks() function and use in CBQ

[IPROUTE]: Add sprint_ticks() function and use in CBQ

Add helper function to print ticks to avoid assumptions about clock
resolution in CBQ.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/tc/q_cbq.c
8f34caafbdbc8f87d228d577872591e138caadb1 04-Mar-2007 Patrick McHardy <kaber@trash.net> Replace "usec" by "time" in function names

[IPROUTE]: Replace "usec" by "time" in function names

Rename functions containing "usec" since they don't necessarily return
usec units anymore.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/tc/q_cbq.c
476daa7278aaf324f6cef27981f81187afce8836 04-Mar-2007 Patrick McHardy <kaber@trash.net> Use tc_calc_xmittime() where appropriate

[IPROUTE]: Use tc_calc_xmittime() where appropriate

Replace expressions of the form "tc_core_usec2tick(1000000 * size/rate)"
by tc_calc_xmittime().

The CBQ case deserves an extra comment: when called with bnwd=rate,
tc_cbq_calc_maxidle() behaves identical to tc_calc_xmittime():

unsigned tc_cbq_calc_maxidle(...)
{
double g = 1.0 - 1.0/(1<<ewma_log);
double xmt = (double)avpkt/bndw;

maxidle = xmt*(1-g);
if (bndw != rate && maxburst) {
...
}
return tc_core_usec2tick(maxidle*(1<<ewma_log)*1000000);
}

which comes down to:

maxidle = xmt * (1 - g)
= xmt * (1 - (1.0 - 1.0/(1 << ewma_log))
= xmt * (1.0/(1 << ewma_log))

so:

maxidle * (1 << ewma_log) * 1000000
= xmt * (1.0/(1 << ewma_log)) * (1 << ewma_log) * 1000000
= xmt * 1000000
= avpkt/bndw * 1000000

Which means tc_core_usec2tick(maxidle*(1<<ewma_log)*1000000) is identical
to tc_calc_xmittime(bndw, avpkt). Use it directly since its a lot easier
to understand its limits.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/tc/q_cbq.c
ae665a522bd46bea44c5ea84c89c8b1731954170 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Remove trailing whitespace

Go through source files and remove all trailing whitespace

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/tc/q_cbq.c
f332d169246447bd5e258ac03d5ee840a70adb1e 06-Jul-2005 shemminger <shemminger> Cleanup GCC4 warnings about signedness.
/external/iproute2/tc/q_cbq.c
021ed13fdceaa41de91af64825b7ca3e98f00a5e 18-Jan-2005 5!tgraf <5!tgraf> Use parse_rtattr_nested

(Logical change 1.129)
/external/iproute2/tc/q_cbq.c
034102f2589b79e92ff677dc74a54096ef10d99d 18-Jan-2005 5!tgraf <5!tgraf> Use NLMSG_TAIL

(Logical change 1.127)
/external/iproute2/tc/q_cbq.c
bb6a21a4fcaf400ca4766eea6064f2df30393d1e 07-Oct-2004 osdl.net!shemminger <osdl.net!shemminger> Fix build warnings on x86_64

(Logical change 1.92)
/external/iproute2/tc/q_cbq.c
95812b56a5a66e7e9a21744cfe8bc0bb9791ea98 28-Sep-2004 net[shemminger]!kaber <net[shemminger]!kaber> : prevent tc crashes

(Logical change 1.81)
/external/iproute2/tc/q_cbq.c
f2f99e2eefdbd9cb6a750b19a7b3036db351b983 31-Aug-2004 osdl.net!shemminger <osdl.net!shemminger> no longer need xstats stub

(Logical change 1.77)
/external/iproute2/tc/q_cbq.c
aba5acdfdb347d2c21fc67d613d83d4430ca3937 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> (Logical change 1.3)
/external/iproute2/tc/q_cbq.c
86fdf0e47be697587efcf9602cd1f952a1d73170 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> Initial revision
/external/iproute2/tc/q_cbq.c