datapath: Convert datapath operations to use Netlink framing.
[sliver-openvswitch.git] / datapath / odp-compat.h
1 /*
2  * Copyright (c) 2010, 2011 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_EXECUTE32           _IOR('O', 18, struct compat_odp_execute)
19
20 struct compat_odp_execute {
21         uint32_t dp_idx;
22
23         compat_uptr_t actions;
24         u32 actions_len;
25
26         compat_uptr_t data;
27         u32 length;
28 };
29 #endif  /* CONFIG_COMPAT */
30
31 #endif  /* odp-compat.h */