net_sched: Add flow control support to prio qdisc

Add enable_flow flag to the prio qdisc.  Packet flow is
enabled by default, but can be disabled from userspace
(e.g. IPROUTE2 tc tool).  This allows for suspending packet
dequeue on a per-qdisc basis, which is needed to supprot
Quality of Service (QOS) when using WWAN modem.

Change-Id: I932f296be946f1acc3b00c7d8569bbb733d33622
Acked-by: Andrew Richardson <randrew@qualcomm.com>
CRs-Fixed: 283471
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
This commit is contained in:
Tianyi Gou
2011-05-31 13:23:01 -07:00
committed by Stephen Boyd
parent 0c3474f55b
commit 6d473f734c
2 changed files with 11 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ struct tc_fifo_qopt {
struct tc_prio_qopt {
int bands; /* Number of bands */
__u8 priomap[TC_PRIO_MAX+1]; /* Map: logical priority -> PRIO band */
__u8 enable_flow; /* Enable dequeue */
};
/* MULTIQ section */