From: Justin Pettit Date: Fri, 13 Jun 2008 03:40:02 +0000 (-0700) Subject: Have the switch list all the stats types it support in the capabilities field. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c0321d9137c7c48a26f9064aaa2c04eadbbad27;p=openvswitch Have the switch list all the stats types it support in the capabilities field. Thanks to Brandon for pointing this out. --- diff --git a/datapath/datapath.h b/datapath/datapath.h index b342cbb5..b822ae4f 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -19,7 +19,10 @@ #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) \ diff --git a/switch/datapath.c b/switch/datapath.c index 5a0e14c4..aa1cb802 100644 --- a/switch/datapath.c +++ b/switch/datapath.c @@ -55,7 +55,10 @@ #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) \