Remove retired features
Subsystems (2)
v2 cover Remove retired features
Remove support in iproute2 for features removed from 6.3 kernel.
Stephen Hemminger (4):
tc: remove support for CBQ
tc: remove support for RSVP classifier
tc: remove tcindex classifier
tc: remove dsmark qdisc
bash-completion/tc | 24 +- man/man7/tc-hfsc.7 | 2 +- man/man8/tc-cbq-details.8 | 423 ------------------------- man/man8/tc-cbq.8 | 351 --------------------- man/man8/tc-htb.8 | 8 +- man/man8/tc-tcindex.8 | 58 ---- man/man8/tc.8 | 23 +- tc/Makefile | 5 - tc/f_rsvp.c | 417 ------------------------- tc/f_tcindex.c | 185 ----------- tc/q_cbq.c | 589 ----------------------------------- tc/q_dsmark.c | 165 ---------- tc/tc_cbq.c | 53 ---- tc/tc_cbq.h | 10 - tc/tc_class.c | 2 +- tc/tc_filter.c | 2 +- tc/tc_qdisc.c | 2 +- testsuite/tests/tc/cbq.t | 10 - testsuite/tests/tc/dsmark.t | 31 -- testsuite/tests/tc/policer.t | 13 - 20 files changed, 11 insertions(+), 2362 deletions(-) delete mode 100644 man/man8/tc-cbq-details.8 delete mode 100644 man/man8/tc-cbq.8 delete mode 100644 man/man8/tc-tcindex.8 delete mode 100644 tc/f_rsvp.c delete mode 100644 tc/f_tcindex.c delete mode 100644 tc/q_cbq.c delete mode 100644 tc/q_dsmark.c delete mode 100644 tc/tc_cbq.c delete mode 100644 tc/tc_cbq.h delete mode 100755 testsuite/tests/tc/cbq.t delete mode 100755 testsuite/tests/tc/dsmark.t delete mode 100755 testsuite/tests/tc/policer.t
Signature · 1 line
2.41.0
PATCH v2 1/4 tc: remove support for CBQ
The CBQ qdisc was removed in 6.3 kernel by upstream 051d44209842 (net/sched: Retire CBQ qdisc, 2023-02-14)
Remove associated support from iproute2 including dropping tests, man pages and fixing other references.
--- man/man7/tc-hfsc.7 | 2 +- man/man8/tc-cbq-details.8 | 423 ------------------------- man/man8/tc-cbq.8 | 351 --------------------- man/man8/tc-htb.8 | 8 +- man/man8/tc.8 | 9 +- tc/Makefile | 2 - tc/q_cbq.c | 589 ----------------------------------- tc/tc_cbq.c | 53 ---- tc/tc_cbq.h | 10 - tc/tc_class.c | 2 +- tc/tc_qdisc.c | 2 +- testsuite/tests/tc/cbq.t | 10 - testsuite/tests/tc/policer.t | 13 - 13 files changed, 7 insertions(+), 1467 deletions(-) delete mode 100644 man/man8/tc-cbq-details.8 delete mode 100644 man/man8/tc-cbq.8 delete mode 100644 tc/q_cbq.c delete mode 100644 tc/tc_cbq.c delete mode 100644 tc/tc_cbq.h delete mode 100755 testsuite/tests/tc/cbq.t delete mode 100755 testsuite/tests/tc/policer.t
man/man7/tc-hfsc.7 +1 -1
@@ -35,7 +35,7 @@ it matters only for leaf classes (where the actual queues are) \- thus class hierarchy is ignored in the realtime case. Feature \fB(2)\fR is well, obvious \- any algorithm featuring class hierarchy -(such as HTB or CBQ) strives to achieve that. HFSC does that well, although +(such as HTB) strives to achieve that. HFSC does that well, although you might end with unusual situations, if you define service curves carelessly \- see section CORNER CASES for examples.
man/man8/tc-cbq-details.8 deleted +0 -423
423 lines not on this page · raw message
man/man8/tc-cbq.8 deleted +0 -351
351 lines not on this page · raw message
man/man8/tc-htb.8 +3 -5
@@ -35,15 +35,13 @@ bytes .B ] .SH DESCRIPTION -HTB is meant as a more understandable and intuitive replacement for -the CBQ qdisc in Linux. Both CBQ and HTB help you to control the use -of the outbound bandwidth on a given link. Both allow you to use one -physical link to simulate several slower links and to send different +HTB allows control of the outbound bandwidth on a given link. +It allows simulating simulating several slower links and to send different kinds of traffic on different simulated links. In both cases, you have to specify how to divide the physical link into simulated links and how to decide which simulated link to use for a given packet to be sent. -Unlike CBQ, HTB shapes traffic based on the Token Bucket Filter algorithm +HTB shapes traffic based on the Token Bucket Filter algorithm which does not depend on interface characteristics and so does not need to know the underlying bandwidth of the outgoing interface.
man/man8/tc.8 +1 -8
@@ -402,12 +402,6 @@ ATM Map flows to virtual circuits of an underlying asynchronous transfer mode device. .TP -CBQ -Class Based Queueing implements a rich linksharing hierarchy of classes. -It contains shaping elements as well as prioritizing capabilities. Shaping is -performed using link idle time calculations based on average packet size and -underlying link bandwidth. The latter may be ill-defined for some interfaces. -.TP DRR The Deficit Round Robin Scheduler is a more flexible replacement for Stochastic Fairness Queuing. Unlike SFQ, there are no built-in queues \-\- you need to add
@@ -452,7 +446,7 @@ well to a hardware implementation. .SH THEORY OF OPERATION Classes form a tree, where each class has a single parent. A class may have multiple children. Some qdiscs allow for runtime addition -of classes (CBQ, HTB) while others (PRIO) are created with a static number of +of classes (HTB) while others (PRIO) are created with a static number of children. Qdiscs which allow dynamic addition of classes can have zero or more
@@ -876,7 +870,6 @@ was written by Alexey N. Kuznetsov and added in Linux 2.2. .BR tc-bfifo (8), .BR tc-bpf (8), .BR tc-cake (8), -.BR tc-cbq (8), .BR tc-cgroup (8), .BR tc-choke (8), .BR tc-codel (8),
tc/Makefile +0 -2
@@ -14,7 +14,6 @@ TCMODULES += q_red.o TCMODULES += q_prio.o TCMODULES += q_skbprio.o TCMODULES += q_tbf.o -TCMODULES += q_cbq.o TCMODULES += q_multiq.o TCMODULES += q_netem.o TCMODULES += q_choke.o
@@ -118,7 +117,6 @@ endif TCLIB := tc_core.o TCLIB += tc_red.o -TCLIB += tc_cbq.o TCLIB += tc_estimator.o TCLIB += tc_stab.o TCLIB += tc_qevent.o
tc/q_cbq.c deleted +0 -589
589 lines not on this page · raw message
tc/tc_cbq.c deleted +0 -53
53 lines not on this page · raw message
tc/tc_cbq.h deleted +0 -10
@@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _TC_CBQ_H_ -#define _TC_CBQ_H_ 1 - -unsigned tc_cbq_calc_maxidle (unsigned bndw,unsigned rate,unsigned avpkt, -int ewma_log,unsigned maxburst); -unsigned tc_cbq_calc_offtime (unsigned bndw,unsigned rate,unsigned avpkt, -int ewma_log,unsigned minburst); - -#endif
tc/tc_class.c +1 -1
@@ -45,7 +45,7 @@ static void usage(void)"\n" " tc class show [ dev STRING ] [ root | parent CLASSID ]\n" "Where:\n" -"QDISC_KIND := { prio | cbq | etc. }\n" +"QDISC_KIND := { prio | etc. }\n" "OPTIONS := ... try tc class add <desired QDISC_KIND> help\n"); }
tc/tc_qdisc.c +1 -1
@@ -33,7 +33,7 @@ static int usage(void)"\n" " tc qdisc { show | list } [ dev STRING ] [ QDISC_ID ] [ invisible ]\n" "Where:\n" -"QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" +"QDISC_KIND := { [p|b]fifo | tbf | prio | red | etc. }\n" "OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help\n" "STAB_OPTIONS := ... try tc qdisc add stab help\n" "QDISC_ID := { root | ingress | handle QHANDLE | parent CLASSID }\n");
testsuite/tests/tc/cbq.t deleted +0 -10
@@ -1,10 +0,0 @@ -#!/bin/sh -$TC qdisc del dev $DEV root >/dev/null 2>&1 -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC qdisc list dev $DEV -$TC qdisc del dev $DEV root -$TC qdisc list dev $DEV -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC qdisc del dev $DEV root
testsuite/tests/tc/policer.t deleted +0 -13
@@ -1,13 +0,0 @@ -#!/bin/sh -$TC qdisc del dev $DEV root >/dev/null 2>&1 -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 -$TC qdisc list dev $DEV -$TC filter list dev $DEV parent 10:0 -$TC qdisc del dev $DEV root -$TC qdisc list dev $DEV -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 -$TC qdisc del dev $DEV root
Signature · 1 line
2.41.0
PATCH v2 2/4 tc: remove support for RSVP classifier
In reply to Stephen HemmingerThe RSVP classifier was removed in 6.3 kernel by upstream commit 265b4da82dbf (net/sched: Retire rsvp classifier, 2023-02-14)
--- bash-completion/tc | 13 +- man/man8/tc.8 | 3 - tc/Makefile | 1 - tc/f_rsvp.c | 417 --------------------------------------------- tc/tc_filter.c | 2 +- 5 files changed, 2 insertions(+), 434 deletions(-) delete mode 100644 tc/f_rsvp.c
bash-completion/tc +1 -12
@@ -5,7 +5,7 @@ QDISC_KIND=' choke codel bfifo pfifo pfifo_head_drop fq fq_codel gred hhf \ mqprio multiq netem pfifo_fast pie fq_pie red sfb sfq tbf atm \ cbq drr dsmark hfsc htb prio qfq ' -FILTER_KIND=' basic bpf cgroup flow flower fw route rsvp tcindex u32 matchall ' +FILTER_KIND=' basic bpf cgroup flow flower fw route tcindex u32 matchall ' ACTION_KIND=' gact mirred bpf sample ' # Takes a list of words in argument; each one of them is added to COMPREPLY if
@@ -476,17 +476,6 @@ _tc_filter_options() _tc_once_attr 'to classid action' return 0 ;; - rsvp) - _tc_once_attr 'ipproto session sender classid action tunnelid \ - tunnel flowlabel spi/ah spi/esp u8 u16 u32' - [[ ${words[${#words[@]}-3]} == tunnel ]] && \ - COMPREPLY+=( $( compgen -W 'skip' -- "$cur" ) ) - [[ ${words[${#words[@]}-3]} =~ u(8|16|32) ]] && \ - COMPREPLY+=( $( compgen -W 'mask' -- "$cur" ) ) - [[ ${words[${#words[@]}-3]} == mask ]] && \ - COMPREPLY+=( $( compgen -W 'at' -- "$cur" ) ) - return 0 - ;; tcindex) _tc_once_attr 'hash mask shift classid action' _tc_one_of_list 'pass_on fall_through'
man/man8/tc.8 +0 -3
@@ -241,9 +241,6 @@ Filter packets based on routing table. See .BR tc-route (8) for details. .TP -rsvp -Match Resource Reservation Protocol (RSVP) packets. -.TP tcindex Filter packets based on traffic control index. See .BR tc-tcindex (8).
tc/Makefile +0 -1
@@ -18,7 +18,6 @@ TCMODULES += q_multiq.o TCMODULES += q_netem.o TCMODULES += q_choke.o TCMODULES += q_sfb.o -TCMODULES += f_rsvp.o TCMODULES += f_u32.o TCMODULES += f_route.o TCMODULES += f_fw.o
tc/f_rsvp.c deleted +0 -417
417 lines not on this page · raw message
tc/tc_filter.c +1 -1
@@ -35,7 +35,7 @@ static void usage(void)" tc filter show [ dev STRING ] [ root | ingress | egress | parent CLASSID ]\n" " tc filter show [ block BLOCK_INDEX ]\n" "Where:\n" -"FILTER_TYPE := { rsvp | u32 | bpf | fw | route | etc. }\n" +"FILTER_TYPE := { u32 | bpf | fw | route | etc. }\n" "FILTERID := ... format depends on classifier, see there\n" "OPTIONS := ... try tc filter add <desired FILTER_KIND> help\n"); }
Signature · 1 line
2.41.0
PATCH v2 3/4 tc: remove tcindex classifier
In reply to Stephen HemmingerSupport for tcindex classifier was removed by upstream commit 8c710f75256b (net/sched: Retire tcindex classifier, 2023-02-14)
--- bash-completion/tc | 7 +- man/man8/tc-tcindex.8 | 58 ------------- man/man8/tc.8 | 7 +- tc/Makefile | 1 - tc/f_tcindex.c | 185 ------------------------------------------ 5 files changed, 2 insertions(+), 256 deletions(-) delete mode 100644 man/man8/tc-tcindex.8 delete mode 100644 tc/f_tcindex.c
bash-completion/tc +1 -6
@@ -5,7 +5,7 @@ QDISC_KIND=' choke codel bfifo pfifo pfifo_head_drop fq fq_codel gred hhf \ mqprio multiq netem pfifo_fast pie fq_pie red sfb sfq tbf atm \ cbq drr dsmark hfsc htb prio qfq ' -FILTER_KIND=' basic bpf cgroup flow flower fw route tcindex u32 matchall ' +FILTER_KIND=' basic bpf cgroup flow flower fw route u32 matchall ' ACTION_KIND=' gact mirred bpf sample ' # Takes a list of words in argument; each one of them is added to COMPREPLY if
@@ -476,11 +476,6 @@ _tc_filter_options() _tc_once_attr 'to classid action' return 0 ;; - tcindex) - _tc_once_attr 'hash mask shift classid action' - _tc_one_of_list 'pass_on fall_through' - return 0 - ;; u32) _tc_once_attr 'match link classid action offset ht hashkey sample' COMPREPLY+=( $( compgen -W 'ip ip6 udp tcp icmp u8 u16 u32 mark \
man/man8/tc-tcindex.8 deleted +0 -58
58 lines not on this page · raw message
man/man8/tc.8 +1 -6
@@ -241,10 +241,6 @@ Filter packets based on routing table. See .BR tc-route (8) for details. .TP -tcindex -Filter packets based on traffic control index. See -.BR tc-tcindex (8). -.TP u32 Generic filtering on arbitrary packet data, assisted by syntax to abstract common operations. See .BR tc-u32 (8)
@@ -892,8 +888,7 @@ was written by Alexey N. Kuznetsov and added in Linux 2.2. .BR tc-sfq (8), .BR tc-stab (8), .BR tc-tbf (8), -.BR tc-tcindex (8), -.BR tc-u32 (8), +.BR tc-u32 (8) .br .RB "User documentation at " http://lartc.org/ ", but please direct bugreports and patches to: " <[email protected]>
tc/Makefile +0 -1
@@ -28,7 +28,6 @@ TCMODULES += f_cgroup.o TCMODULES += f_flower.o TCMODULES += q_dsmark.o TCMODULES += q_gred.o -TCMODULES += f_tcindex.o TCMODULES += q_ingress.o TCMODULES += q_hfsc.o TCMODULES += q_htb.o
tc/f_tcindex.c deleted +0 -185
185 lines not on this page · raw message
Signature · 1 line
2.41.0
PATCH v2 4/4 tc: remove dsmark qdisc
In reply to Stephen HemmingerThe kernel has removed support for dsmark qdisc in commit bbe77c14ee61 (net/sched: Retire dsmark qdisc, 2023-02-14)
--- bash-completion/tc | 6 +- man/man8/tc.8 | 4 - tc/Makefile | 1 - tc/q_dsmark.c | 165 ------------------------------------ testsuite/tests/tc/dsmark.t | 31 ------- 5 files changed, 1 insertion(+), 206 deletions(-) delete mode 100644 tc/q_dsmark.c delete mode 100755 testsuite/tests/tc/dsmark.t
bash-completion/tc +1 -5
@@ -4,7 +4,7 @@ QDISC_KIND=' choke codel bfifo pfifo pfifo_head_drop fq fq_codel gred hhf \ mqprio multiq netem pfifo_fast pie fq_pie red sfb sfq tbf atm \ - cbq drr dsmark hfsc htb prio qfq ' + cbq drr hfsc htb prio qfq ' FILTER_KIND=' basic bpf cgroup flow flower fw route u32 matchall ' ACTION_KIND=' gact mirred bpf sample '
@@ -362,10 +362,6 @@ _tc_qdisc_options() _tc_once_attr 'bandwidth avpkt mpu cell ewma' return 0 ;; - dsmark) - _tc_once_attr 'indices default_index set_tc_index' - return 0 - ;; hfsc) _tc_once_attr 'default' return 0
man/man8/tc.8 +0 -4
@@ -403,10 +403,6 @@ useful e.g. for using RED qdiscs with different settings for particular traffic. There is no default class \-\- if a packet cannot be classified, it is dropped. .TP -DSMARK -Classify packets based on TOS field, change TOS field of packets based on -classification. -.TP ETS The ETS qdisc is a queuing discipline that merges functionality of PRIO and DRR qdiscs in one scheduler. ETS makes it easy to configure a set of strict and
tc/Makefile +0 -1
@@ -26,7 +26,6 @@ TCMODULES += f_bpf.o TCMODULES += f_flow.o TCMODULES += f_cgroup.o TCMODULES += f_flower.o -TCMODULES += q_dsmark.o TCMODULES += q_gred.o TCMODULES += q_ingress.o TCMODULES += q_hfsc.o
tc/q_dsmark.c deleted +0 -165
165 lines not on this page · raw message
testsuite/tests/tc/dsmark.t deleted +0 -31
@@ -1,31 +0,0 @@ -#!/bin/sh -# vim: ft=sh - -. lib/generic.sh - -ts_qdisc_available "dsmark" -if [ $? -eq 0 ]; then - ts_log "dsmark: Unsupported by $TC, skipping" - exit 127 -fi - -ts_tc "dsmark" "dsmark root qdisc creation" \ - qdisc add dev $DEV root handle 10:0 \ - dsmark indices 64 default_index 1 set_tc_index - -ts_tc "dsmark" "dsmark class 1 creation" \ - class change dev $DEV parent 10:0 classid 10:12 \ - dsmark mask 0xff value 2 - -ts_tc "dsmark" "dsmark class 2 creation" \ - class change dev $DEV parent 10:0 classid 10:13 \ - dsmark mask 0xfc value 4 - -ts_tc "dsmark" "dsmark dump qdisc" \ - qdisc list dev $DEV - -ts_tc "dsmark" "dsmark dump class" \ - class list dev $DEV parent 10:0 - -ts_tc "dsmark" "generic qdisc tree deletion" \ - qdisc del dev $DEV root
Signature · 1 line
2.41.0
This series was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Hello:
This series was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Quoted 9 lines · On Mon, 30 Oct 2023 11:39:45 -0700 you wrote:
Remove support in iproute2 for features removed from 6.3 kernel.
Stephen Hemminger (4):
tc: remove support for CBQ
tc: remove support for RSVP classifier
tc: remove tcindex classifier
tc: remove dsmark qdisc[...]
Here is the summary with links:
- [v2,iproute2,1/4] tc: remove support for CBQ
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=07ba0af3fee1 - [v2,iproute2,2/4] tc: remove support for RSVP classifier https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=aeb7be384388 - [v2,iproute2,3/4] tc: remove tcindex classifier https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=bc0c1661eb22 - [v2,iproute2,4/4] tc: remove dsmark qdisc https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=11e6e783b638
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html