From f75b5d818521113b853242dae14aeeeb9861d596 Mon Sep 17 00:00:00 2001 From: Fabio Falzoi Date: Fri, 10 May 2024 11:40:39 +0200 Subject: [PATCH] bugtool: Deduplicate tc qdisc commands The same tc commands to get information about queue discipline are repeated twice. Fix this deduplicating them. Related: b13dc89166 ("Bugtool: Add additional tc commands.") Signed-off-by: Fabio Falzoi --- bugtool/cmd/configuration.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bugtool/cmd/configuration.go b/bugtool/cmd/configuration.go index b8ca2dcdf868..9f83c87ef945 100644 --- a/bugtool/cmd/configuration.go +++ b/bugtool/cmd/configuration.go @@ -91,8 +91,6 @@ func defaultCommands(confDir string, cmdDir string, k8sPods []string) []string { "ip -6 n", "ss -t -p -a -i -s -n -e", "ss -u -p -a -i -s -n -e", - "tc qdisc show", - "tc -d -s qdisc show", "uname -a", "top -b -n 1", "uptime", @@ -122,8 +120,8 @@ func defaultCommands(confDir string, cmdDir string, k8sPods []string) []string { fmt.Sprintf("ls -la /proc/$(pidof %s)/fd", components.CiliumAgentName), "lsmod", // tc - "tc -s qdisc", // Show statistics on queuing disciplines "tc qdisc show", + "tc -d -s qdisc show", // Show statistics on queuing disciplines } // LB and CT map for debugging services; using bpftool for a reliable dump