diff options
author | Ben Pfaff <blp@nicira.com> | 2010-05-13 15:25:27 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-05-13 15:29:51 -0700 |
commit | 3fbd517acfd8dba2cd75fa234b0eb3337d202d33 (patch) | |
tree | 97319cfbf75de5b1df2632441d37ffefc63591ff /datapath/vport.h | |
parent | 776f10ce0f008e95b457f8c6b69b9748d8d1fdbd (diff) |
datapath: Add 32-bit compatibility ioctls.
When a 32-bit userspace program runs on a 64-bit kernel, data structures
that contain members whose sizes or alignments change from 32- to 64-bit
must be translated when they are passed to ioctls. This commit adds such
support for openvswitch_mod.
We should really reconsider some parts of the Open vSwitch ioctl interface
to avoid needing as much translation as we do.
Lightly tested with 32-bit userspace on sparc64.
Diffstat (limited to 'datapath/vport.h')
-rw-r--r-- | datapath/vport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/datapath/vport.h b/datapath/vport.h index 7b71226c..a26f232a 100644 --- a/datapath/vport.h +++ b/datapath/vport.h @@ -15,6 +15,7 @@ #include "datapath.h" #include "openvswitch/datapath-protocol.h" +#include "odp-compat.h" struct vport; struct dp_port; @@ -31,6 +32,11 @@ int vport_add(const struct odp_vport_add __user *); int vport_mod(const struct odp_vport_mod __user *); int vport_del(const char __user *udevname); +#ifdef CONFIG_COMPAT +int compat_vport_add(struct compat_odp_vport_add __user *); +int compat_vport_mod(struct compat_odp_vport_mod __user *); +#endif + int vport_stats_get(struct odp_vport_stats_req __user *); int vport_ether_get(struct odp_vport_ether __user *); int vport_ether_set(struct odp_vport_ether __user *); |