This is used in a queue statistics request to request statistics
of all queues.

Signed-off-by: Simon Horman <[email protected]>
---
 ryu/ofproto/ofproto_v1_2.py | 3 +++
 ryu/ofproto/ofproto_v1_3.py | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py
index b9d9062..e29d517 100644
--- a/ryu/ofproto/ofproto_v1_2.py
+++ b/ryu/ofproto/ofproto_v1_2.py
@@ -94,6 +94,9 @@ OFPP_CONTROLLER = 0xfffffffd    # Send to controller.
 OFPP_LOCAL = 0xfffffffe         # Local openflow "port".
 OFPP_ANY = 0xffffffff          # Not associated with a physical port.
 
+# All ones is used to indicate all queues in a port (for stats retrieval).
+OFPQ_ALL = 0xffffffff
+
 # enum ofp_port_features
 OFPPF_10MB_HD = 1 << 0    # 10 Mb half-duplex rate support.
 OFPPF_10MB_FD = 1 << 1    # 10 Mb full-duplex rate support.
diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py
index b5008e6..5d8b375 100644
--- a/ryu/ofproto/ofproto_v1_3.py
+++ b/ryu/ofproto/ofproto_v1_3.py
@@ -99,6 +99,9 @@ OFPP_CONTROLLER = 0xfffffffd    # Send to controller.
 OFPP_LOCAL = 0xfffffffe         # Local openflow "port".
 OFPP_ANY = 0xffffffff          # Not associated with a physical port.
 
+# All ones is used to indicate all queues in a port (for stats retrieval).
+OFPQ_ALL = 0xffffffff
+
 # enum ofp_port_features
 OFPPF_10MB_HD = 1 << 0    # 10 Mb half-duplex rate support.
 OFPPF_10MB_FD = 1 << 1    # 10 Mb full-duplex rate support.
-- 
1.7.10.2.484.gcd07cc5


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to