blob: c4f94882e1c0ca157cbcf550af3f11ad26791b47 [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
Rich Lane4b1d8f42014-10-31 15:25:14 -070032#version 5
Murat Parlakisikf95672c2016-12-05 00:53:17 -080033#version 6
Rich Lane7b49e3b2014-02-05 13:44:03 -080034
35// Retrieves the checksum for every bucket in a table. The entries are ordered
36// by bucket index.
37//
Rich Lane7f6288b2014-06-30 17:23:59 -070038// The checksum of a bucket is the sum of the cookies of all entries in the
Rich Lane7b49e3b2014-02-05 13:44:03 -080039// bucket. Flows are bucketed based on a prefix of the cookie.
40struct of_bsn_flow_checksum_bucket_stats_request : of_bsn_stats_request {
41 uint8_t version;
42 uint8_t type == 18;
43 uint16_t length;
44 uint32_t xid;
45 uint16_t stats_type == 0xffff;
46 enum ofp_stats_request_flags flags;
47 pad(4);
48 uint32_t experimenter == 0x5c16c7;
49 uint32_t subtype == 10;
50 uint8_t table_id;
51};
52
53struct of_bsn_flow_checksum_bucket_stats_entry {
54 uint64_t checksum;
55};
56
57struct of_bsn_flow_checksum_bucket_stats_reply : of_bsn_stats_reply {
58 uint8_t version;
59 uint8_t type == 19;
60 uint16_t length;
61 uint32_t xid;
62 uint16_t stats_type == 0xffff;
63 enum ofp_stats_reply_flags flags;
64 pad(4);
65 uint32_t experimenter == 0x5c16c7;
66 uint32_t subtype == 10;
67 list(of_bsn_flow_checksum_bucket_stats_entry_t) entries;
68};
69
70
71// Retrieves the checksum for every table.
72//
Rich Lane7f6288b2014-06-30 17:23:59 -070073// The checksum of a table is the sum of the cookies of all entries in the
Rich Lane7b49e3b2014-02-05 13:44:03 -080074// table.
75struct of_bsn_table_checksum_stats_request : of_bsn_stats_request {
76 uint8_t version;
77 uint8_t type == 18;
78 uint16_t length;
79 uint32_t xid;
80 uint16_t stats_type == 0xffff;
81 enum ofp_stats_request_flags flags;
82 pad(4);
83 uint32_t experimenter == 0x5c16c7;
84 uint32_t subtype == 11;
85};
86
87struct of_bsn_table_checksum_stats_entry {
88 uint8_t table_id;
89 uint64_t checksum;
90};
91
92struct of_bsn_table_checksum_stats_reply : of_bsn_stats_reply {
93 uint8_t version;
94 uint8_t type == 19;
95 uint16_t length;
96 uint32_t xid;
97 uint16_t stats_type == 0xffff;
98 enum ofp_stats_reply_flags flags;
99 pad(4);
100 uint32_t experimenter == 0x5c16c7;
101 uint32_t subtype == 11;
102 list(of_bsn_table_checksum_stats_entry_t) entries;
103};
104
105
106// This message sets the size of the buckets array. The switch may reject this
107// message if the table has entries. buckets_size must be a power of 2.
108struct of_bsn_table_set_buckets_size : of_bsn_header {
109 uint8_t version;
110 uint8_t type == 4;
111 uint16_t length;
112 uint32_t xid;
113 uint32_t experimenter == 0x5c16c7;
114 uint32_t subtype == 61;
Rich Lane2a668452014-06-09 17:14:26 -0700115 pad(1);
116 uint8_t table_id;
Rich Lane7b49e3b2014-02-05 13:44:03 -0800117 pad(2);
118 uint32_t buckets_size;
119};