diff options
author | Florian Westphal <fw@strlen.de> | 2016-06-09 00:27:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-08 23:58:51 -0700 |
commit | dd47c1fa776cda48531b651c88341e951140b0a7 (patch) | |
tree | 8715b2ca35d21bb95990d97c00c72fc58f17c51c /include/net | |
parent | c3498d34dd369115a06e5bb862b90b06fde3d114 (diff) | |
download | linux-stable-dd47c1fa776cda48531b651c88341e951140b0a7.tar.gz linux-stable-dd47c1fa776cda48531b651c88341e951140b0a7.tar.bz2 linux-stable-dd47c1fa776cda48531b651c88341e951140b0a7.zip |
cbq: remove TCA_CBQ_POLICE support
iproute2 doesn't implement any cbq option that results in this attribute
being sent to kernel.
To make use of it, user would have to
- patch iproute2
- add a class
- attach a qdisc to the class (default pfifo doesn't work as
q->handle is 0 and cbq_set_police() is a no-op in this case)
- re-'add' the same class (tc class change ...) again
- user must also specifiy a defmap (e.g. 'split 1:0 defmap 3f'), since
this 'police' feature relies on its presence
- the added qdisc must be one of bfifo, pfifo or netem
If all of these conditions are met and _some_ leaf qdiscs, namely
p/bfifo, netem, plug or tbf would drop a packet, kernel calls back into
cbq, which will attempt to re-queue the skb into a different class
as indicated by the parents' defmap entry for TC_PRIO_BESTEFFORT.
[ i.e. we behave as if tc_classify returned TC_ACT_RECLASSIFY ].
This feature, which isn't documented or implemented in iproute2,
and isn't implemented consistently (most qdiscs like sfq, codel, etc
drop right away instead of attempting this reclassification) is the
sole reason for the reshape_fail and __parent member in Qdisc struct.
So remove TCA_CBQ_POLICE support from the kernel, reject it via EOPNOTSUPP
so userspace knows we don't support it, and then remove no-longer needed
infrastructure in followup commit.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sch_generic.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index c4f5749342ec..c069ac1dd75d 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -68,10 +68,6 @@ struct Qdisc { void *u32_node; - /* This field is deprecated, but it is still used by CBQ - * and it will live until better solution will be invented. - */ - struct Qdisc *__parent; struct netdev_queue *dev_queue; struct gnet_stats_rate_est64 rate_est; |