blob: 2ab12e8c870529223a37e286c03ac362ad0cf06a [file] [log] [blame]
Phanendra Manda4c728b32015-12-09 23:04:16 +05301// Copyright 2013, Big Switch Networks, Inc.
2//
3// LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with
4// the following special exception:
5//
6// LOXI Exception
7//
8// As a special exception to the terms of the EPL, you may distribute libraries
9// generated by LoxiGen (LoxiGen Libraries) under the terms of your choice, provided
10// that copyright and licensing notices generated by LoxiGen are not altered or removd
11// from the LoxiGen Libraries and the notice provided below is (i) included in
12// the LoxiGen Libraries, if distributed in source code form and (ii) included in any
13// documentation for the LoxiGen Libraries, if distributed in binary form.
14//
15// Notice: "Copyright 2013, Big Switch Networks, Inc. This library was generated by t"
16//
17// You may not use this file except in compliance with the EPL or LOXI Exception. Youn
18// a copy of the EPL at:
19//
20// http://www.eclipse.org/legal/epl-v10.html
21//
22// Unless required by applicable law or agreed to in writing, software
23// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
24// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
25// EPL for the specific language governing permissions and limitations
26// under the EPL.
27
28#version 3
29#version 4
30#version 5
31
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053032// Nicira extension for nsp (113)
33struct of_oxm_nsp : of_oxm {
34 uint32_t type_len == 0x0001e204;
Phanendra Manda4c728b32015-12-09 23:04:16 +053035 uint32_t value;
36};
37
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053038struct of_oxm_nsp_masked : of_oxm {
39 uint32_t type_len == 0x0001e308;
Phanendra Manda4c728b32015-12-09 23:04:16 +053040 uint32_t value;
41 uint32_t value_mask;
42};
43
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053044// Nicira extension for nsi (114)
45struct of_oxm_nsi : of_oxm {
46 uint32_t type_len == 0x0001e401;
Phanendra Manda4c728b32015-12-09 23:04:16 +053047 uint8_t value;
48};
49
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053050struct of_oxm_nsi_masked : of_oxm {
51 uint32_t type_len == 0x0001e502;
Phanendra Manda4c728b32015-12-09 23:04:16 +053052 uint8_t value;
53 uint8_t value_mask;
54};
55
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053056// Nicira extension for nsh_c1 (115)
57struct of_oxm_nsh_c1 : of_oxm {
58 uint32_t type_len == 0x0001e604;
Phanendra Manda4c728b32015-12-09 23:04:16 +053059 uint32_t value;
60};
61
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053062struct of_oxm_nsh_c1_masked : of_oxm {
63 uint32_t type_len == 0x0001e708;
Phanendra Manda4c728b32015-12-09 23:04:16 +053064 uint32_t value;
65 uint32_t value_mask;
66};
67
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053068// Nicira extension for nsh_c2 (116)
69struct of_oxm_nsh_c2 : of_oxm {
70 uint32_t type_len == 0x0001e804;
Phanendra Manda4c728b32015-12-09 23:04:16 +053071 uint32_t value;
72};
73
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053074struct of_oxm_nsh_c2_masked : of_oxm {
75 uint32_t type_len == 0x0001e908;
Phanendra Manda4c728b32015-12-09 23:04:16 +053076 uint32_t value;
77 uint32_t value_mask;
78};
79
80
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053081// Nicira extension for nsh_c3 (117)
82struct of_oxm_nsh_c3 : of_oxm {
83 uint32_t type_len == 0x0001ea04;
Phanendra Manda4c728b32015-12-09 23:04:16 +053084 uint32_t value;
85};
86
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053087struct of_oxm_nsh_c3_masked : of_oxm {
88 uint32_t type_len == 0x0001eb08;
Phanendra Manda4c728b32015-12-09 23:04:16 +053089 uint32_t value;
90 uint32_t value_mask;
91};
92
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053093// Nicira extension for nsh_c4 (118)
94struct of_oxm_nsh_c4 : of_oxm {
95 uint32_t type_len == 0x0001ec04;
Phanendra Manda4c728b32015-12-09 23:04:16 +053096 uint32_t value;
97};
98
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +053099struct of_oxm_nsh_c4_masked : of_oxm {
100 uint32_t type_len == 0x0001ed08;
Phanendra Manda4c728b32015-12-09 23:04:16 +0530101 uint32_t value;
102 uint32_t value_mask;
103};
Phaneendra Mandaadcb3e72016-05-12 21:53:48 +0530104
105
106// Nicira extension for nsh_mdtype (119)
107struct of_oxm_nsh_mdtype : of_oxm {
108 uint32_t type_len == 0x0001ee01;
109 uint8_t value;
110};
111
112struct of_oxm_nsh_mdtype_masked : of_oxm {
113 uint32_t type_len == 0x0001ef02;
114 uint8_t value;
115 uint8_t value_mask;
116};
117
118
119// Nicira extension for nsh_np (120)
120struct of_oxm_nsh_np : of_oxm {
121 uint32_t type_len == 0x0001f001;
122 uint8_t value;
123};
124
125struct of_oxm_nsh_np_masked : of_oxm {
126 uint32_t type_len == 0x0001f102;
127 uint8_t value;
128 uint8_t value_mask;
129};
130
131
132// Nicira extension for encap_eth_src (121)
133struct of_oxm_encap_eth_src : of_oxm {
134 uint32_t type_len == 0x0001f206;
135 of_mac_addr_t value;
136};
137
138struct of_oxm_encap_eth_src_masked : of_oxm {
139 uint32_t type_len == 0x0001f30c;
140 of_mac_addr_t value;
141 of_mac_addr_t value_mask;
142
143};
144
145
146// Nicira extension for encap_eth_dst (122)
147struct of_oxm_encap_eth_dst : of_oxm {
148 uint32_t type_len == 0x0001f406;
149 of_mac_addr_t value;
150};
151
152struct of_oxm_encap_eth_dst_masked : of_oxm {
153 uint32_t type_len == 0x0001f50c;
154 of_mac_addr_t value;
155 of_mac_addr_t value_mask;
156};
157
158
159// Nicira extension for encap_eth_type (123)
160struct of_oxm_encap_eth_type : of_oxm {
161 uint32_t type_len == 0x0001f602;
162 uint16_t value;
163};
164
165struct of_oxm_encap_eth_type_masked : of_oxm {
166 uint32_t type_len == 0x0001f704;
167 uint16_t value;
168 uint16_t value_mask;
169};