summaryrefslogtreecommitdiffstats
path: root/lib/route/cls_obj.c
Commit message (Collapse)AuthorAgeFilesLines
* Unified TC APIThomas Graf2011-03-211-228/+0
| | | | | | | | 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 interfaceThomas Graf2010-10-261-32/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* - Reworked the classifier interface.Thomas Graf2009-09-021-6/+53
| | | | | | - Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
* Error handling for rtnl_cls_set_kind() & addition of rtnl_cls_get_ops()Thomas Graf2008-10-151-1/+11
|
* Use 16bit ints for classifier prio/protocolThomas Graf2008-10-151-4/+4
|
* Remove old line counting while dumpingThomas Graf2008-05-231-29/+22
|
* Initial importThomas Graf2007-09-141-0/+203