Bug 193 - [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64] iproute-tc包流量控制功能报错,Error: Specified qdisc not found.
Summary: [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64] iproute-tc包流量控制功能报错,Error: Sp...
Status: VERIFIED DUPLICATE of bug 192
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.4
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: HFD
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-23 20:54 UTC by xugangjian
Modified: 2021-12-31 17:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xugangjian alibaba_cloud_group 2021-12-23 20:54:43 UTC
[问题描述]
使用 Anolis OS 8.4 龙芯版 4.19.190-3.an8.loongarch64 环境 在使用 iproute-tc包测试流量控制功能时报错,Error: Specified qdisc not found.


【测试环境】

[内核]
内核:
[root@localhost ~]# uname -r
4.19.190-3.an8.loongarch64

# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.4"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.4"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.4"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"


# lscpu
Architecture:        loongarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
CPU family:          Loongson-64bit
Model name:          Loongson-3A5000LL
BogoMIPS:            4600.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            256K
L3 cache:            16384K
NUMA node0 CPU(s):   0-3
Flags:               cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips


# free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       1.1Gi        12Gi        21Mi       1.7Gi        12Gi
Swap:         7.9Gi          0B       7.9Gi


[问题复现]

[root@localhost ~]# ifconfig
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 30.240.156.103  netmask 255.255.248.0  broadcast 30.240.159.255
        inet6 fe80::223:9eff:fe25:9234  prefixlen 64  scopeid 0x20<link>
        ether 00:23:9e:25:92:34  txqueuelen 1000  (Ethernet)
        RX packets 315411  bytes 329958882 (314.6 MiB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 338455  bytes 32682450 (31.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 45  base 0x4000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 140  bytes 30411 (29.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 140  bytes 30411 (29.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:ed:f0:af  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

执行:以网络delay来测试下tc对网络参数的控制
[root@localhost ~]# tc qdisc add dev enp3s0  root netem delay 100ms
Error: Specified qdisc not found.
Comment 1 shuming admin 2021-12-31 17:30:28 UTC
Duplicate of 192.

*** This bug has been marked as a duplicate of bug 192 ***