]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/odp-compat.h
datapath: Add missing #include to datapath/flow.h.
[mirror_ovs.git] / datapath / odp-compat.h
CommitLineData
3fbd517a
BP
1/*
2 * Copyright (c) 2010 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
4 *
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
7 */
8
9#ifndef ODP_COMPAT_H
10#define ODP_COMPAT_H 1
11
12/* 32-bit ioctl compatibility definitions for datapath protocol. */
13
14#ifdef CONFIG_COMPAT
15#include "openvswitch/datapath-protocol.h"
16#include <linux/compat.h>
17
18#define ODP_PORT_LIST32 _IOWR('O', 10, struct compat_odp_portvec)
19#define ODP_PORT_GROUP_SET32 _IOR('O', 11, struct compat_odp_port_group)
20#define ODP_PORT_GROUP_GET32 _IOWR('O', 12, struct compat_odp_port_group)
21#define ODP_FLOW_GET32 _IOWR('O', 13, struct compat_odp_flow)
22#define ODP_FLOW_PUT32 _IOWR('O', 14, struct compat_odp_flow)
23#define ODP_FLOW_LIST32 _IOWR('O', 15, struct compat_odp_flowvec)
24#define ODP_FLOW_DEL32 _IOWR('O', 17, struct compat_odp_flow)
25#define ODP_EXECUTE32 _IOR('O', 18, struct compat_odp_execute)
26#define ODP_FLOW_DEL32 _IOWR('O', 17, struct compat_odp_flow)
27#define ODP_VPORT_ADD32 _IOR('O', 21, struct compat_odp_vport_add)
28#define ODP_VPORT_MOD32 _IOR('O', 22, struct compat_odp_vport_mod)
29
30struct compat_odp_portvec {
31 compat_uptr_t ports;
32 u32 n_ports;
33};
34
35struct compat_odp_port_group {
36 compat_uptr_t ports;
37 u16 n_ports; /* Number of ports. */
38 u16 group; /* Group number. */
39};
40
41struct compat_odp_flow {
42 struct odp_flow_stats stats;
43 struct odp_flow_key key;
44 compat_uptr_t actions;
45 u32 n_actions;
46 u32 flags;
47};
48
49struct compat_odp_flow_put {
50 struct compat_odp_flow flow;
51 u32 flags;
52};
53
54struct compat_odp_flowvec {
55 compat_uptr_t flows;
56 u32 n_flows;
57};
58
59struct compat_odp_execute {
60 u16 in_port;
61 u16 reserved1;
62 u32 reserved2;
63
64 compat_uptr_t actions;
65 u32 n_actions;
66
67 compat_uptr_t data;
68 u32 length;
69};
70
71struct compat_odp_vport_add {
72 char port_type[VPORT_TYPE_SIZE];
73 char devname[16]; /* IFNAMSIZ */
74 compat_uptr_t config;
75};
76
77struct compat_odp_vport_mod {
78 char devname[16]; /* IFNAMSIZ */
79 compat_uptr_t config;
80};
81#endif /* CONFIG_COMPAT */
82
83#endif /* odp-compat.h */