2 * Copyright (c) 2010 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
10 #define XFLOW_COMPAT_H 1
12 /* 32-bit ioctl compatibility definitions for datapath protocol. */
15 #include "openvswitch/datapath-protocol.h"
16 #include <linux/compat.h>
18 #define XFLOW_PORT_LIST32 _IOWR('O', 10, struct compat_xflow_portvec)
19 #define XFLOW_PORT_GROUP_SET32 _IOR('O', 11, struct compat_xflow_port_group)
20 #define XFLOW_PORT_GROUP_GET32 _IOWR('O', 12, struct compat_xflow_port_group)
21 #define XFLOW_FLOW_GET32 _IOWR('O', 13, struct compat_xflow_flow)
22 #define XFLOW_FLOW_PUT32 _IOWR('O', 14, struct compat_xflow_flow)
23 #define XFLOW_FLOW_LIST32 _IOWR('O', 15, struct compat_xflow_flowvec)
24 #define XFLOW_FLOW_DEL32 _IOWR('O', 17, struct compat_xflow_flow)
25 #define XFLOW_EXECUTE32 _IOR('O', 18, struct compat_xflow_execute)
26 #define XFLOW_FLOW_DEL32 _IOWR('O', 17, struct compat_xflow_flow)
27 #define XFLOW_VPORT_ADD32 _IOR('O', 21, struct compat_xflow_vport_add)
28 #define XFLOW_VPORT_MOD32 _IOR('O', 22, struct compat_xflow_vport_mod)
30 struct compat_xflow_portvec {
35 struct compat_xflow_port_group {
37 u16 n_ports; /* Number of ports. */
38 u16 group; /* Group number. */
41 struct compat_xflow_flow {
42 struct xflow_flow_stats stats;
44 compat_uptr_t actions;
49 struct compat_xflow_flow_put {
50 struct compat_xflow_flow flow;
54 struct compat_xflow_flowvec {
59 struct compat_xflow_execute {
64 compat_uptr_t actions;
71 struct compat_xflow_vport_add {
72 char port_type[VPORT_TYPE_SIZE];
73 char devname[16]; /* IFNAMSIZ */
77 struct compat_xflow_vport_mod {
78 char devname[16]; /* IFNAMSIZ */
81 #endif /* CONFIG_COMPAT */
83 #endif /* xflow-compat.h */