Call the "tc qdisc" command for ingress qdisc without parent
The "tc qdisc" command to create an ingress qdisc does not require
to define a parent qdisc [1]. The ingress qdisc "differs from other
qdiscs in that it does not occupy the root of a device".
The previous command was replacing the default root egress qdisc:
root@dev20:~# ip netns exec ns01 tc qdisc show
qdisc noqueue 0: dev dummy root refcnt 2
This operation is now not permitted with the new kernel.
This patch is also changing how the TC funtional tests interact with
the namespace interface created. Now the interface is set to UP before
the test starts. That changes the "tc qdisc show" command because now
the default qdisc (see the aforementioned CLI output) is now present,
as it should be in a live environment (where the interfaces are UP).
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/893962 /opendev. org/openstack/ neutron/ commit/ 8cba9a2ee86cb3b 65645674ef315c1 4cfb261143
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8cba9a2ee86cb3b 65645674ef315c1 4cfb261143
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Sep 6 15:58:31 2023 +0000
Call the "tc qdisc" command for ingress qdisc without parent
The "tc qdisc" command to create an ingress qdisc does not require
to define a parent qdisc [1]. The ingress qdisc "differs from other
qdiscs in that it does not occupy the root of a device".
The previous command was replacing the default root egress qdisc:
root@dev20:~# ip netns exec ns01 tc qdisc show
qdisc noqueue 0: dev dummy root refcnt 2
This operation is now not permitted with the new kernel.
This patch is also changing how the TC funtional tests interact with
the namespace interface created. Now the interface is set to UP before
the test starts. That changes the "tc qdisc show" command because now
the default qdisc (see the aforementioned CLI output) is now present,
as it should be in a live environment (where the interfaces are UP).
Closes-Bug: #2034540
[1]https:/ /tldp.org/ HOWTO/Adv- Routing- HOWTO/lartc. adv-qdisc. ingress. html
Change-Id: I2f8130dc3cf324 4be2a44a4ecbdba a9c7f865731