]>
Commit | Line | Data |
---|---|---|
667e2b0b BP |
1 | /* Copyright (c) 2015 Nicira, Inc. |
2 | * | |
3 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | * you may not use this file except in compliance with the License. | |
5 | * You may obtain a copy of the License at: | |
6 | * | |
7 | * http://www.apache.org/licenses/LICENSE-2.0 | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, software | |
10 | * distributed under the License is distributed on an "AS IS" BASIS, | |
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | * See the License for the specific language governing permissions and | |
13 | * limitations under the License. | |
14 | */ | |
15 | ||
16 | #ifndef OVN_LOGICAL_FIELDS_H | |
17 | #define OVN_LOGICAL_FIELDS_H 1 | |
18 | ||
064d7f84 | 19 | #include "openvswitch/meta-flow.h" |
667e2b0b BP |
20 | |
21 | /* Logical fields. | |
22 | * | |
23 | * These values are documented in ovn-architecture(7), please update the | |
24 | * documentation if you change any of them. */ | |
25 | #define MFF_LOG_DATAPATH MFF_METADATA /* Logical datapath (64 bits). */ | |
cc5e28d8 | 26 | #define MFF_LOG_DNAT_ZONE MFF_REG11 /* conntrack dnat zone for gateway router |
3bd4ae23 | 27 | * (32 bits). */ |
cc5e28d8 | 28 | #define MFF_LOG_SNAT_ZONE MFF_REG12 /* conntrack snat zone for gateway router |
3bd4ae23 | 29 | * (32 bits). */ |
cc5e28d8 | 30 | #define MFF_LOG_CT_ZONE MFF_REG13 /* Logical conntrack zone for lports |
3bd4ae23 | 31 | * (32 bits). */ |
cc5e28d8 JP |
32 | #define MFF_LOG_INPORT MFF_REG14 /* Logical input port (32 bits). */ |
33 | #define MFF_LOG_OUTPORT MFF_REG15 /* Logical output port (32 bits). */ | |
667e2b0b BP |
34 | |
35 | /* Logical registers. | |
36 | * | |
37 | * Make sure these don't overlap with the logical fields! */ | |
38 | #define MFF_LOG_REGS \ | |
39 | MFF_LOG_REG(MFF_REG0) \ | |
40 | MFF_LOG_REG(MFF_REG1) \ | |
cc5e28d8 JP |
41 | MFF_LOG_REG(MFF_REG2) \ |
42 | MFF_LOG_REG(MFF_REG3) \ | |
43 | MFF_LOG_REG(MFF_REG4) \ | |
44 | MFF_LOG_REG(MFF_REG5) \ | |
45 | MFF_LOG_REG(MFF_REG6) \ | |
46 | MFF_LOG_REG(MFF_REG7) \ | |
47 | MFF_LOG_REG(MFF_REG8) \ | |
48 | MFF_LOG_REG(MFF_REG9) | |
667e2b0b BP |
49 | |
50 | #endif /* ovn/lib/logical-fields.h */ |