diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-09-12 16:29:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 16:29:34 -0700 |
commit | 92651940ab00dbe64722e908f70d816713d677b7 (patch) | |
tree | b68fdef99784bfa46b67aabaf70c19b0e5e0a144 /include/linux/pkt_sched.h | |
parent | 78d15e82754945ee9821fb491b57faf43abfb9d7 (diff) | |
download | lwn-92651940ab00dbe64722e908f70d816713d677b7.tar.gz lwn-92651940ab00dbe64722e908f70d816713d677b7.zip |
pkt_sched: Add multiqueue scheduler support
This patch is intended to add a qdisc to support the new tx multiqueue
architecture by providing a band for each hardware queue. By doing
this it is possible to support a different qdisc per physical hardware
queue.
This qdisc uses the skb->queue_mapping to select which band to place
the traffic onto. It then uses a round robin w/ a check to see if the
subqueue is stopped to determine which band to dequeue the packet from.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pkt_sched.h')
-rw-r--r-- | include/linux/pkt_sched.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h index e5de421ac7b4..5d921fa91a5b 100644 --- a/include/linux/pkt_sched.h +++ b/include/linux/pkt_sched.h @@ -123,6 +123,13 @@ struct tc_prio_qopt __u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */ }; +/* MULTIQ section */ + +struct tc_multiq_qopt { + __u16 bands; /* Number of bands */ + __u16 max_bands; /* Maximum number of queues */ +}; + /* TBF section */ struct tc_tbf_qopt |