]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute2: sch_rr support in tc
authorPJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>
Tue, 14 Aug 2007 18:21:24 +0000 (11:21 -0700)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 22 Aug 2007 17:04:25 +0000 (10:04 -0700)
commit292ce96bca64dee087fe00d38743f5e2d1895c5d
tree858e94fc5a963945b4370631e8c90b39e4853420
parent2f90c9c0bb0d8ed4841cb4c77c2d707ec07f20bf
iproute2: sch_rr support in tc

This patch applies on top of Patrick McHardy's RTNETLINK
patches to add nested compat attributes.  This is needed to maintain
ABI for sch_{rr|prio} in the kernel with respect to tc.  A new option,
namely multiqueue, was added to sch_prio and sch_rr.  This will allow
a user to turn multiqueue support on for sch_prio or sch_rr at loadtime.
Also, tc qdisc ls will display whether or not multiqueue is enabled on
that qdisc.  When in multiqueue mode, a user can specify a value of 0 for
bands, and the number of bands will be created to match the number of
queues on the device.

This patch is to support the new sch_rr (round-robin) qdisc being proposed
in NET for multiqueue network device support in the Linux network stack.
It uses q_prio.c as the template, since the qdiscs are nearly identical,
outside of the ->dequeue() routine.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
include/linux/pkt_sched.h
tc/q_prio.c
tc/q_rr.c [new file with mode: 0644]