]> git.proxmox.com Git - ovs.git/blob - ovn/lib/logical-fields.h
actions: Factor out new helper function add_prerequisite().
[ovs.git] / ovn / lib / logical-fields.h
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
19 #include "meta-flow.h"
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). */
26 #define MFF_LOG_CT_ZONE MFF_REG5 /* Logical conntrack zone (32 bits). */
27 #define MFF_LOG_INPORT MFF_REG6 /* Logical input port (32 bits). */
28 #define MFF_LOG_OUTPORT MFF_REG7 /* Logical output port (32 bits). */
29
30 /* Logical registers.
31 *
32 * Make sure these don't overlap with the logical fields! */
33 #define MFF_LOG_REGS \
34 MFF_LOG_REG(MFF_REG0) \
35 MFF_LOG_REG(MFF_REG1) \
36 MFF_LOG_REG(MFF_REG2) \
37 MFF_LOG_REG(MFF_REG3) \
38 MFF_LOG_REG(MFF_REG4)
39
40 #endif /* ovn/lib/logical-fields.h */