Have the switch list all the stats types it support in the capabilities field.
authorJustin Pettit <jpettit@nicira.com>
Fri, 13 Jun 2008 03:40:02 +0000 (20:40 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 13 Jun 2008 03:40:02 +0000 (20:40 -0700)
Thanks to Brandon for pointing this out.

datapath/datapath.h
switch/datapath.c

index b342cbb..b822ae4 100644 (file)
 #endif
 
 /* Capabilities supported by this implementation. */
-#define OFP_SUPPORTED_CAPABILITIES (OFPC_MULTI_PHY_TX)
+#define OFP_SUPPORTED_CAPABILITIES ( OFPC_FLOW_STATS \
+               | OFPC_TABLE_STATS \
+               | OFPC_PORT_STATS \
+               | OFPC_MULTI_PHY_TX )
 
 /* Actions supported by this implementation. */
 #define OFP_SUPPORTED_ACTIONS ( (1 << OFPAT_OUTPUT) \
index 5a0e14c..aa1cb80 100644 (file)
 #define BRIDGE_PORT_NO_FLOOD    0x00000001
 
 /* Capabilities supported by this implementation. */
-#define OFP_SUPPORTED_CAPABILITIES (OFPC_MULTI_PHY_TX)
+#define OFP_SUPPORTED_CAPABILITIES ( OFPC_FLOW_STATS \
+        | OFPC_TABLE_STATS \
+        | OFPC_PORT_STATS \
+        | OFPC_MULTI_PHY_TX )
 
 /* Actions supported by this implementation. */
 #define OFP_SUPPORTED_ACTIONS ( (1 << OFPAT_OUTPUT)         \