Skip to contentSkip to conversation

remove support for CBQ, RSVP and tc-index

PATCH Superseded Stephen Hemminger 2 participants 2 messages Oct 30, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove support for CBQ, RSVP and tc-index

"Bring out your dead".
The kernel removed support for CBQ, RSVP and tcindex because these features were causing lots of failing syszbot tests.

---
Thanks to Jamal at TC workshop for suggestion.

 bash-completion/tc           |  24 +-
 man/man8/tc-cbq-details.8    | 423 -------------------------
 man/man8/tc-cbq.8            | 351 ---------------------
 man/man8/tc-tcindex.8        |  58 ----
 man/man8/tc.8                |  19 +-
 tc/Makefile                  |   4 -
 tc/f_rsvp.c                  | 417 -------------------------
 tc/f_tcindex.c               | 185 -----------
 tc/q_cbq.c                   | 589 -----------------------------------
 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/policer.t |  13 -
 16 files changed, 7 insertions(+), 2155 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/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
bash-completion/tc +2 -22
index 8352cc94..a097c407 100644
@@ -4,8 +4,8 @@
 
 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 '
+            drr dsmark hfsc htb prio qfq '
+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
@@ -358,10 +358,6 @@ _tc_qdisc_options()
                 linklayer'
             return 0
             ;;
-        cbq)
-            _tc_once_attr 'bandwidth avpkt mpu cell ewma'
-            return 0
-            ;;
         dsmark)
             _tc_once_attr 'indices default_index set_tc_index'
             return 0
@@ -476,22 +472,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'
-            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-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-tcindex.8 deleted +0 -58

58 lines not on this page · raw message

man/man8/tc.8 +2 -17
index d436d464..ae6de397 100644
@@ -241,13 +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).
-.TP
 u32
 Generic filtering on arbitrary packet data, assisted by syntax to abstract common operations. See
 .BR tc-u32 (8)
@@ -402,12 +395,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 +439,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 +863,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),
@@ -902,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 -4
index 98d2ee59..ab6ad2f5 100644
@@ -14,12 +14,10 @@ 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
 TCMODULES += q_sfb.o
-TCMODULES += f_rsvp.o
 TCMODULES += f_u32.o
 TCMODULES += f_route.o
 TCMODULES += f_fw.o
@@ -30,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
@@ -118,7 +115,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/f_rsvp.c deleted +0 -417

417 lines not on this page · raw message

tc/f_tcindex.c deleted +0 -185

185 lines not on this page · raw message

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
deleted file mode 100644
index fa17d249..00000000
@@ -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
index 65776180..f6a3d134 100644
@@ -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_filter.c +1 -1
index d28b1859..eb45c588 100644
@@ -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");
 }
tc/tc_qdisc.c +1 -1
index 56086c43..84fd659f 100644
@@ -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
deleted file mode 100755
index bff814b7..00000000
@@ -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
deleted file mode 100755
index eaf16acf..00000000
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Stephen Hemminger

"Bring out your dead".
The kernel removed support for CBQ, RSVP and tcindex because these features were causing lots of failing syszbot tests.

---
Thanks to Jamal at TC workshop for suggestion.

 bash-completion/tc           |  24 +-
 man/man8/tc-cbq-details.8    | 423 -------------------------
 man/man8/tc-cbq.8            | 351 ---------------------
 man/man8/tc-tcindex.8        |  58 ----
 man/man8/tc.8                |  19 +-
 tc/Makefile                  |   4 -
 tc/f_rsvp.c                  | 417 -------------------------
 tc/f_tcindex.c               | 185 -----------
 tc/q_cbq.c                   | 589 -----------------------------------
 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/policer.t |  13 -
 16 files changed, 7 insertions(+), 2155 deletions(-)
 delete mode 100644 man/man8/tc-cbq-details.8
 delete mode 100644 man/man8/tc-cbq.8
Quoted 9 lines
 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/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