diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-05-23 16:07:22 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-06-14 11:21:50 -0700 |
| commit | 2a1c0549a3bfd9ef8528ebf7f34fec07ec509e11 (patch) | |
| tree | 1fb933a0f7acb6622a3f978eafc1b31ae99bab54 /include | |
| parent | 03cd34939e0f90fab30daf74034de0fbd1af17ec (diff) | |
| download | openvswitch-2a1c0549a3bfd9ef8528ebf7f34fec07ec509e11.tar.gz | |
openflow: Merge ofp_flow_stats_request and ofp_aggregate_stats_request.
Diffstat (limited to 'include')
| -rw-r--r-- | include/openflow/openflow.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index 5329f20ac..b7c7085de 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -706,7 +706,7 @@ enum ofp_stats_types { OFPST_FLOW, /* Aggregate flow statistics. - * The request body is struct ofp_aggregate_stats_request. + * The request body is struct ofp_flow_stats_request. * The reply body is struct ofp_aggregate_stats_reply. */ OFPST_AGGREGATE, @@ -759,7 +759,7 @@ struct ofp_desc_stats { }; OFP_ASSERT(sizeof(struct ofp_desc_stats) == 1056); -/* Body for stats request of type OFPST_FLOW. */ +/* Body for stats request of type OFPST_FLOW or OFPST_AGGREGATE. */ struct ofp_flow_stats_request { struct ofp_match match; /* Fields to match. */ uint8_t table_id; /* ID of table to read (from ofp_table_stats) @@ -792,18 +792,6 @@ struct ofp_flow_stats { }; OFP_ASSERT(sizeof(struct ofp_flow_stats) == 88); -/* Body for stats request of type OFPST_AGGREGATE. */ -struct ofp_aggregate_stats_request { - struct ofp_match match; /* Fields to match. */ - uint8_t table_id; /* ID of table to read (from ofp_table_stats) - or 0xff for all tables. */ - uint8_t pad; /* Align to 32 bits. */ - ovs_be16 out_port; /* Require matching entries to include this - as an output port. A value of OFPP_NONE - indicates no restriction. */ -}; -OFP_ASSERT(sizeof(struct ofp_aggregate_stats_request) == 44); - /* Body of reply to OFPST_AGGREGATE request. */ struct ofp_aggregate_stats_reply { ovs_32aligned_be64 packet_count; /* Number of packets in flows. */ |
