History log of /external/iproute2/tc/q_gred.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aacee2695a903bac66d083b39f092053f2484e70 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Add support for TCA_GRED_LIMIT attribute

Allow the qdisc limit to be set, which is particularly useful when
the default VQ is not configured with RED parameters.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
357c45ad3a3fba94adc3591c150506af95fba50e 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Adopt the term VQ in the command syntax and output

In the GRED kernel source code, both of the terms "drop parameters"
(DP) and "virtual queue" (VQ) are used to refer to the same thing.
Each "DP" is better understood as a "set of drop parameters", since
it has values for limit, min, max, avpkt, etc. This terminology can
result in confusion when creating a GRED qdisc having multiple DPs.
Netlink attributes and struct members with the DP name seem to have
been left intact for compatibility, while the term VQ was otherwise
adopted in the code, which is more intuitive.

Use the VQ term in the tc command syntax and output (but maintain
compatibility with the old syntax).

Rewrite the usage text to be concise and similar to other qdiscs.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
eb6d7d6af1c2d65c4e905807fc44aba682e71b4c 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Handle unsigned values properly in option parsing/printing

DPs, def_DP, and DP are unsigned values that are sent and received
in TCA_GRED_* netlink attributes; handle them properly when they
are parsed or printed. Use MAX_DPs as the initial value for def_DP
and DP, and fix the operator used for bounds checking them.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
1693a4d392779adf004b99b0864f9cf0cd4a8a4f 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Improve parameter/statistics output

Make the output more consistent with the RED qdisc, and only show
details/statistics if the appropriate flag is set when calling tc.

Show the parameters used with "gred setup". Add missing statistics
"pdrop" and "other". Fix format specifiers for unsigned values.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
a77905ef6aeaf85b26c51a62e409a7ccc5128410 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Print usage text if no arguments appear after "gred"

This is more helpful to the user, since the command takes two forms,
and the message that would otherwise appear about missing parameters
assumes one of those forms.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
d73e0408e2d1c02d94512c035d568b1530854e23 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: gred: Fix whitespace issues in code

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
d93c909a4cf1ef5d3833044e7b9e3b7a7230881a 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: red, gred: Notify when using the default value for "bandwidth"

The "bandwidth" parameter is optional, but ensure the user is aware
of its default value, to proactively avoid configuration problems.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
6c99695da283677b04675bd8a33a12fdb89b1048 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: red, gred: Fix format specifier in burst size warning

burst is an unsigned value.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
9d9a67c7567fb7f650095db5d424023ee2c3da5c 18-May-2015 David Ward <david.ward@ll.mit.edu> tc: red, gred: Rename overloaded variable wlog

It is used when parsing three different parameters, only one of
which is Wlog. Change the name to make the code less confusing.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
/external/iproute2/tc/q_gred.c
3d0b7439dfac96d93386295a4c961b89bd3d8463 21-Dec-2014 Stephen Hemminger <shemming@brocade.com> whitespace cleanup

Remove all trailing whitespace and space before tabs.
/external/iproute2/tc/q_gred.c
1b6f0bb5be5d71fd62ed6ccbc3665adc6e747b82 20-Jan-2012 Eric Dumazet <eric.dumazet@gmail.com> gred: support TCA_GRED_MAX_P attribute

TCA_GRED_MAX_P permits to express high resolution probabilities.

New output (on 3.3+ kernel) :

disc gred 9442: root refcnt 17
DP:0 (prio 1) Average Queue 0b Measured Queue 0b
Packet drops: 0 (forced 0 early 0)
Packet totals: 20 (bytes 2584)
limit 31460b min 3000b max 9000b ewma 5 probability 0.05 Scell_log 15

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/tc/q_gred.c
ab15aeacf5a106cfb8e72cd6760e8cf134161ceb 01-Dec-2011 Eric Dumazet <eric.dumazet@gmail.com> red: make burst optional

Documentation advises to set burst to (min+min+max)/(3*avpkt)

Let tc do this automatically if user doesnt provide burst himself.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/tc/q_gred.c
cb4bd0ec8dcba856d1ebf8b3f72b79f669dad0f4 25-Aug-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> Fix GRED options clearing

Bug reported where priorities of GRED DP's are ignored.
The option parsing sets opt then memset was clearing these
values.
/external/iproute2/tc/q_gred.c
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_gred.c
ddf216c8631195549dbf84e4ebe3da1d77b45ce0 12-Jan-2010 Florian Westphal <fw@strlen.de> tc: red, gred, tbf: more helpful error messages

$ tc qdisc add dev eth1 root tbf
RTNETLINK answers: Invalid argument

$ tc qdisc add dev eth1 root red
RTNETLINK answers: Invalid argument

with patch:
$ tc qdisc add dev eth1 root red
Required parameter (min, max, burst, limit, avpkt) is missing

$ tc qdisc add dev eth1 root tbf
Usage: ... tbf limit BYTES burst BYTES[/BYTES] rate KBPS ...

Signed-off-by: Florian Westphal <fw@strlen.de>
/external/iproute2/tc/q_gred.c
1558971d43bbcd5db7f9be966654482a96179bf1 27-May-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> fix handling of GRED DPs args
/external/iproute2/tc/q_gred.c
ebde878097a4494c47e682aff16233f2fe6a495e 27-May-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> Allow default DP of zero in gred

To emulate WRED behaviour, allow default DP of zero.
/external/iproute2/tc/q_gred.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_gred.c
a5a6f1e80db7b124de236eb0dabafc7996c5f2f0 10-Mar-2005 osdl.net!shemminger <osdl.net!shemminger> more ifdef excession.

(Logical change 1.158)
/external/iproute2/tc/q_gred.c
b7024f2ef528bfb5a16c6d4b1aef40f4648db466 10-Mar-2005 osdl.net!shemminger <osdl.net!shemminger> get rid of some old ifdef'd out code.

(Logical change 1.157)
/external/iproute2/tc/q_gred.c
3b3ecd31c1e513f029ebbb83f2e808553de0a741 18-Jan-2005 4!tgraf <4!tgraf> Use parse_rtattr_nested

(Logical change 1.129)
/external/iproute2/tc/q_gred.c
228569c3ff79468f4c7580fd88b0d6a34ebdc311 18-Jan-2005 4!tgraf <4!tgraf> Use NLMSG_TAIL

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

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

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