Hi, I have created two queues on bridge br0 port br0 and eth2.
Then I added an IP flow entry with action to forward the matching packets to queue 0 on port eth2. Using a packet generator, I sent 10 matching packets to the switch. The packet count got updated in both dump-flows and queue stats. But when I added flow entry with action enqueue to local port, only the "dump-flows" command shows "n_packets" value being updated. The queue-stats does not get updated. I repeated the above scenario for second queue also, but the end result is same. Please let me know if I am missing something in the execution or this is an issue. Following are the logs of the scenario executed: [root@user]# ovs-vsctl -- set Port br0 qos=@newqos -- set Port eth2 qos=@newqos -- --id=@newqos create QoS type=linux-htb other-config:max-rate=1000000000 queues=0=@q0,1=@q1 -- --id=@q0 create Queue other-config:min-rate=100000000 other-config:max-rate=100000000 -- --id=@q1 create Queue other-config:min-rate=500000000 0e368e95-825c-4b48-a1c0-c64194c0ee89 0ff91efe-b11f-40df-95b1-a469e3833ea7 ad86724f-7c72-431f-904d-0e07c9a04590 [root@user]# [root@user]# ovs-ofctl queue-stats br0 OFPST_QUEUE reply (xid=0x1): 4 queues port 3 queue 0: bytes=0, pkts=0, errors=0 port 3 queue 1: bytes=0, pkts=0, errors=0 port LOCAL queue 0: bytes=0, pkts=0, errors=0 port LOCAL queue 1: bytes=0, pkts=0, errors=0 [root@user]# [root@user]# ovs-ofctl add-flow br0 "ip,nw_src=10.0.2.10 action=enqueue:3:0" [root@user]# ovs-ofctl dump-flows br0 TEST_FLOW reply (xid=0x4): cookie=0x0, duration=8.609s, table=0, n_packets=7, n_bytes=420, idle_age=1, ip,nw_src=10.0.2.10 actions=enqueue:3q0 [root@user]# ovs-ofctl queue-stats br0 OFPST_QUEUE reply (xid=0x1): 4 queues port 3 queue 0: bytes=600, pkts=10, errors=0 port 3 queue 1: bytes=0, pkts=0, errors=0 port LOCAL queue 0: bytes=0, pkts=0, errors=0 port LOCAL queue 1: bytes=0, pkts=0, errors=0 [root@user]# ovs-ofctl del-flows br0 [root@user]# [root@user]# ovs-ofctl add-flow br0 "ip,nw_src=10.0.2.10 action=enqueue:65534:0" [root@user]# [root@user]# ovs-ofctl dump-flows br0 TEST_FLOW reply (xid=0x4): cookie=0x0, duration=2.84s, table=0, n_packets=0, n_bytes=0, idle_age=2, ip,nw_src=10.0.2.10 actions=enqueue:LOCALq0 [root@user]# ovs-ofctl queue-stats br0 OFPST_QUEUE reply (xid=0x1): 4 queues port 3 queue 0: bytes=600, pkts=10, errors=0 port 3 queue 1: bytes=0, pkts=0, errors=0 port LOCAL queue 0: bytes=0, pkts=0, errors=0 port LOCAL queue 1: bytes=0, pkts=0, errors=0 [root@user]# ovs-ofctl add-flow br0 "ip,nw_src=10.0.2.10 action=enqueue:65534:1" [root@user]# [root@user]# ovs-ofctl dump-flows br0 TEST_FLOW reply (xid=0x4): cookie=0x0, duration=19.281s, table=0, n_packets=10, n_bytes=600, idle_age=2, ip,nw_src=10.0.2.10 actions=enqueue:LOCALq1 [root@user]# ovs-ofctl queue-stats br0 OFPST_QUEUE reply (xid=0x1): 4 queues port 3 queue 0: bytes=600, pkts=10, errors=0 port 3 queue 1: bytes=0, pkts=0, errors=0 port LOCAL queue 0: bytes=0, pkts=0, errors=0 port LOCAL queue 1: bytes=0, pkts=0, errors=0 [root@user]# [root@user]# ovs-ofctl add-flow br0 "ip,nw_src=10.0.2.10 action=enqueue:3:1" [root@user]# [root@user]# ovs-ofctl dump-flows br0 TEST_FLOW reply (xid=0x4): cookie=0x0, duration=21.008s, table=0, n_packets=10, n_bytes=600, idle_age=2, ip,nw_src=10.0.2.10 actions=enqueue:3q1 [root@user]# ovs-ofctl queue-stats br0 OFPST_QUEUE reply (xid=0x1): 4 queues port 3 queue 0: bytes=600, pkts=10, errors=0 port 3 queue 1: bytes=600, pkts=10, errors=0 port LOCAL queue 0: bytes=0, pkts=0, errors=0 port LOCAL queue 1: bytes=0, pkts=0, errors=0 Regards, Akash
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss