Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unified TC API | Thomas Graf | 2011-03-21 | 1 | -8/+2 |
| | | | | | | | | Finally got rid of all the qdisc/class/cls code duplication in the tc module API. The API takes care of allocation/freeing the tc object specific data. I hope I got it right this time. | ||||
* | Unified TC attributes interface | Thomas Graf | 2010-10-26 | 1 | -34/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | So far all common tc atttributes were accessed via specific functions, i.e. rtnl_class_set_parent(), rtnl_qdisc_set_parent(), rtnl_cls_set_parent() which implied a lot of code duplication. Since all tc objects are derived from struct rtnl_tc and these common attributes are already stored in there this patch removes all type specific functions and makes rtnl_tc_* attribute functions public. rtnl_qdisc_set_parent(qdisc, 10); becomes: rtnl_tc_set_parent((struct rtnl_tc *) qdisc, 10); This patch also adds the following new attributes to tc objects therefore removing them as tc specific attributes: - mtu - mpu - overhead This allows for the rate table calculations to be unified as well taking into account the new kernel behavior to take care of overhead automatically. | ||||
* | nl-class-delete tool | Thomas Graf | 2010-10-20 | 1 | -0/+14 |
| | | | | Tool based on nl-qdisc-delete to delete traffic classes. | ||||
* | nl-class-add tool | Thomas Graf | 2010-10-20 | 1 | -0/+71 |
Adds a cli based tool to add/update traffic classes. This tool requires each class to be supported via the respetive qdisc module in pkglibdir/cli/qdisc/$name.so. Syntax: nl-class-add --dev eth2 --parent 1: --id 1:1 htb --rate 100mbit nl-class-add --update --dev eth2 --id 1:1 htb --rate 200mbit |