summaryrefslogtreecommitdiffstats
path: root/lib/route/qdisc/htb.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Move private header files to <netlink-private/*>Thomas Graf2013-01-241-3/+3
| | | | | | | 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
* correct HTB rtable/HZ calculationsAndrew Collins2012-05-291-6/+6
| | | | | | | | | | | | 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.
* htb: fix misplaced memset() overwriting already set htb prio optionThomas Graf2011-08-121-2/+2
| | | | Reported by Richard Cesar <spidla@spidlas.cz>
* 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-211-0/+433