Hi, all When I configure the qos rules to one linux bond port which has been attached to openvswitch port, I find the tc rules are not what I configured. Fllow the steps bellow to reproduce it:
1) Use linux bond [root@host1 home]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer3+4 (1) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: slow Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 9 Number of ports: 1 Actor Key: 9 Partner Key: 32969 Partner Mac Address: 00:23:04:ee:be:0b Slave Interface: enp2s0f0 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: 50:57:a8:e1:d9:aa Slave queue ID: 0 Aggregator ID: 9 Actor Churn State: none Partner Churn State: none Actor Churned Count: 0 Partner Churned Count: 0 details actor lacp pdu: system priority: 65535 port key: 9 port priority: 255 port number: 1 port state: 61 details partner lacp pdu: system priority: 32667 oper key: 32969 port priority: 32768 port number: 16641 port state: 61 Slave Interface: enp2s0f1 MII Status: down Speed: 1000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: 50:57:a8:e1:d9:ab Slave queue ID: 0 Aggregator ID: 8 Actor Churn State: churned Partner Churn State: churned Actor Churned Count: 1 Partner Churned Count: 1 details actor lacp pdu: system priority: 65535 port key: 0 port priority: 255 port number: 2 port state: 69 details partner lacp pdu: system priority: 65535 oper key: 1 port priority: 255 port number: 1 port state: 1 2) Create ovs bridge and add the port to it ovs-vsctl add-br testbr ovs-vsctl add-port testbr bond0 3) Configure the qos for bond0 ovs-vsctl set port bond0 qos=@qos -- --id=@qos create qos type=linux-htb queues:0=@queue_data -- --id=@queue_data create queue other-config:min-rate=1200000000 other-config:max-rate=2000000000 4)Show the tc rules using tc command tc class show dev bond0 class htb 1:1 parent 1:fffe prio 0 rate 1000Mbit ceil 1000Mbit burst 1625b cburst 1625b class htb 1:fffe root rate 1000Mbit ceil 1000Mbit burst 1500b cburst 1500b You could find the ceil and the rate is not what I specified. Could you help me to confirm the problem and fix it? _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss