summaryrefslogtreecommitdiffstats
path: root/lib/route/qdisc
Commit message (Collapse)AuthorAgeFilesLines
* route/qdisc: fixe printing whitespace in qdisc_dump_details()Steffen Vogel2015-08-141-3/+3
| | | | | | And whitespace (source code) fix. Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/qdisc: added more attributes to netem dumpSteffen Vogel2015-08-141-2/+60
| | | | | | | | I added all the netem attributes (except for limit) to the NL_DUMP_DETAILS section. [thaller@redhat.com: whitespace fixes] Signed-off-by: Thomas Haller <thaller@redhat.com>
* qdisc: add hfsc qdisc supportCong Wang2014-07-301-0/+351
| | | | | | | | Cc: Thomas Graf <tgraf@suug.ch> Cc: Thomas Haller <thaller@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* tc: save error code for rtnl_tc_data_check()Cong Wang2014-07-301-34/+48
| | | | | | | | Cc: Thomas Graf <tgraf@suug.ch> Cc: Thomas Haller <thaller@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* style: require comma after __ADD() macroThomas Haller2014-07-272-11/+11
| | | | | | | $ sed -i 's/^\([\t ]\+\<__ADD\> \?([^)]\+)\) *$/\1,/' `git grep -w -l __ADD` Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* add fq_codel qdiscCong Wang2013-11-221-0/+377
| | | | | | Cc: Thomas Graf <tgraf@suug.ch> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* add ingress qdiscCong Wang2013-10-301-0/+64
| | | | | | | | This patch adds ingress qdisc to libnl. Cc: Thomas Graf <tgraf@suug.ch> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Move private header files to <netlink-private/*>Thomas Graf2013-01-2411-32/+32
| | | | | | | This clarifies the seperation between public and private header files. Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Clang diagnosticsКоренберг Марк (ноутбук дома)2012-10-191-4/+4
| | | | | | | | | | | | Based on clang diagnostics: 1. lib/nl.c: recvmsgs(): nla filling with zeros commented. 2. lib/route/classid.c: & lib/route/pktloc.c: remove zero-filling of struct stat 3. lib/route/qdisc/htb.c: Fix htb_qdisc_msg_fill(): fix zero-filling 4. ematch/container.c: container_parse: commented why only 4 bytes are copied len marked as unused to eliminate compiler warning
* tbf: fix false missing attrStephane Fillod2012-08-091-1/+1
| | | | Fix false missing attribute in tbf_msg_fill() when applying a tbf qdisc.
* Fix types-related warnings based on clang diagnosticsКоренберг Марк2012-06-131-1/+2
| | | | | | | | | | | | | | | | | 1. Fix some places where unsigned value compared < 0 2. Fix obsolete %Z specifier to more portable %z 3. Some erroneous types substitution 4. nl_msec2str() - 64-bit msec is now properly used, Only safe changes. I mean int <--> uint32_t and signed/unsigned fixes. Some functinos require size_t argument instead of int, but changes of signatures of that functions is terrible thing. Also, I do not pretend for a full list of fixes. Just to shut up clang -Wall -Wextra One more thing. ifindex. I don't change that because changes will be too big for simple fix.
* netem: Use ARRAY_SIZE()Thomas Graf2012-06-081-1/+1
|
* rtnl_netem_set_delay_distribution: fix possible segfaultКоренберг Марк (ноутбук дома)2012-06-071-3/+4
| | | | fix counting of elements in array. Just typo, as I think.
* correct HTB rtable/HZ calculationsAndrew Collins2012-05-292-8/+8
| | | | | | | | | | | | The HTB implementation in libnl uses units of microseconds in a number of places where it seems TC is expecting time in units of ticks, which causes actual rates much higher than requested. Additionally, libnl uses USER_HZ for calculating buffer and cbuffer sizes, which can result in much larger buffers than necessary on systems with high resolution timers. Note that the TBF qdisc uses microseconds incorrectly in two spots as well, I fixed this but did not test.
* Support plug qdisc - queue traffic until explicit releaseShriram Rajagopalan2012-02-141-0/+177
| | | | | | | | | | | | | | | | | | | | | | | The plug qdisc supports two operations - plug and unplug. When the qdisc receives a plug ("buffer") command via netlink request, packets arriving henceforth are buffered until a corresponding unplug command is received. Depending on the type of unplug ("release_one" or "release_indefinite"), the queue can be unplugged indefinitely or selectively. The plug qdisc allows a user to implement network output buffering (aka output commit), used commonly in checkpoint based fault tolerance systems. It also supports a general purpose queue plug/unplug functionality. The associated kernel module is available in David Miller's net-next tree, commit: c3059be16c9ef29c05f0876a9df5fea21f29724f This patch introduces userspace tools and API, to control the qdisc via netlink messages. Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca> Signed-off-by: Thomas Graf <tgraf@redhat.com>
* htb: fix misplaced memset() overwriting already set htb prio optionThomas Graf2011-08-121-2/+2
| | | | Reported by Richard Cesar <spidla@spidlas.cz>
* Make some functions and global variables staticPavel Roskin2011-08-111-1/+2
|
* HTB: Add support for level and direct pkt stats, complete access functionsThomas Graf2011-06-091-42/+252
| | | | | | | | - Adds support for htb class level and direct packet statistics - Complete all get/set access functions - Complete error handling - Documentation
* rename sch -> qdiscThomas Graf2011-03-2110-0/+3361