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 b342cbb5910cfd24deb3bcbec1378dc9affa8790..b822ae4fa4421b0c925ee021a22db98f5df17882 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 5a0e14c490a69e3ba60a0b7e28cd10384a6f8516..aa1cb802d26e6e2b3d02fc1e77fe26b85125620e 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)         \