1 /* Copyright (c) 2015 Nicira, Inc.
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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef OVN_LOGICAL_FIELDS_H
17 #define OVN_LOGICAL_FIELDS_H 1
19 #include "openvswitch/meta-flow.h"
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). */
26 #define MFF_LOG_DNAT_ZONE MFF_REG3 /* conntrack dnat zone for gateway router
28 #define MFF_LOG_SNAT_ZONE MFF_REG4 /* conntrack snat zone for gateway router
30 #define MFF_LOG_CT_ZONE MFF_REG5 /* Logical conntrack zone for lports
32 #define MFF_LOG_INPORT MFF_REG6 /* Logical input port (32 bits). */
33 #define MFF_LOG_OUTPORT MFF_REG7 /* Logical output port (32 bits). */
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) \
43 #endif /* ovn/lib/logical-fields.h */