blob: bfa5f3c8b19f296e2cef881ea6e0f4224509723d [file] [log] [blame]
Rich Lane7b49e3b2014-02-05 13:44:03 -08001// Copyright 2013, Big Switch Networks, Inc.
2//
3// LoxiGen is licensed under the Eclipse Public License,
4// version 1.0 (EPL), with the following special exception:
5//
6// LOXI Exception
7//
8// As a special exception to the terms of the EPL, you may
9// distribute libraries generated by LoxiGen (LoxiGen Libraries)
10// under the terms of your choice, provided that copyright and
11// licensing notices generated by LoxiGen are not altered or removed
12// from the LoxiGen Libraries and the notice provided below is (i)
13// included in the LoxiGen Libraries, if distributed in source code
14// form and (ii) included in any documentation for the LoxiGen
15// Libraries, if distributed in binary form.
16//
17// Notice: "Copyright 2013, Big Switch Networks, Inc.
18// This library was generated by the LoxiGen Compiler."
19//
20// You may not use this file except in compliance with the EPL or
21// LOXI Exception. You may obtain a copy of the EPL at:
22//
23// http://www.eclipse.org/legal/epl-v10.html
24//
25// Unless required by applicable law or agreed to in writing,
26// software distributed under the License is distributed on an "AS
27// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
28// express or implied. See the EPL for the specific language
29// governing permissions and limitations under the EPL.
30
31#version 4
32
33// Retrieves the checksum for every bucket in a table. The entries are ordered
34// by bucket index.
35//
Rich Lane7f6288b2014-06-30 17:23:59 -070036// The checksum of a bucket is the sum of the cookies of all entries in the
Rich Lane7b49e3b2014-02-05 13:44:03 -080037// bucket. Flows are bucketed based on a prefix of the cookie.
38struct of_bsn_flow_checksum_bucket_stats_request : of_bsn_stats_request {
39 uint8_t version;
40 uint8_t type == 18;
41 uint16_t length;
42 uint32_t xid;
43 uint16_t stats_type == 0xffff;
44 enum ofp_stats_request_flags flags;
45 pad(4);
46 uint32_t experimenter == 0x5c16c7;
47 uint32_t subtype == 10;
48 uint8_t table_id;
49};
50
51struct of_bsn_flow_checksum_bucket_stats_entry {
52 uint64_t checksum;
53};
54
55struct of_bsn_flow_checksum_bucket_stats_reply : of_bsn_stats_reply {
56 uint8_t version;
57 uint8_t type == 19;
58 uint16_t length;
59 uint32_t xid;
60 uint16_t stats_type == 0xffff;
61 enum ofp_stats_reply_flags flags;
62 pad(4);
63 uint32_t experimenter == 0x5c16c7;
64 uint32_t subtype == 10;
65 list(of_bsn_flow_checksum_bucket_stats_entry_t) entries;
66};
67
68
69// Retrieves the checksum for every table.
70//
Rich Lane7f6288b2014-06-30 17:23:59 -070071// The checksum of a table is the sum of the cookies of all entries in the
Rich Lane7b49e3b2014-02-05 13:44:03 -080072// table.
73struct of_bsn_table_checksum_stats_request : of_bsn_stats_request {
74 uint8_t version;
75 uint8_t type == 18;
76 uint16_t length;
77 uint32_t xid;
78 uint16_t stats_type == 0xffff;
79 enum ofp_stats_request_flags flags;
80 pad(4);
81 uint32_t experimenter == 0x5c16c7;
82 uint32_t subtype == 11;
83};
84
85struct of_bsn_table_checksum_stats_entry {
86 uint8_t table_id;
87 uint64_t checksum;
88};
89
90struct of_bsn_table_checksum_stats_reply : of_bsn_stats_reply {
91 uint8_t version;
92 uint8_t type == 19;
93 uint16_t length;
94 uint32_t xid;
95 uint16_t stats_type == 0xffff;
96 enum ofp_stats_reply_flags flags;
97 pad(4);
98 uint32_t experimenter == 0x5c16c7;
99 uint32_t subtype == 11;
100 list(of_bsn_table_checksum_stats_entry_t) entries;
101};
102
103
104// This message sets the size of the buckets array. The switch may reject this
105// message if the table has entries. buckets_size must be a power of 2.
106struct of_bsn_table_set_buckets_size : of_bsn_header {
107 uint8_t version;
108 uint8_t type == 4;
109 uint16_t length;
110 uint32_t xid;
111 uint32_t experimenter == 0x5c16c7;
112 uint32_t subtype == 61;
Rich Lane2a668452014-06-09 17:14:26 -0700113 pad(1);
114 uint8_t table_id;
Rich Lane7b49e3b2014-02-05 13:44:03 -0800115 pad(2);
116 uint32_t buckets_size;
117};