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 /include | |
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 'include')
-rw-r--r-- | include/openvswitch/datapath-protocol.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index 0e8d5c9e..826dc27f 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -37,7 +37,10 @@ * ---------------------------------------------------------------------- */ -/* Protocol between userspace and kernel datapath. */ +/* Protocol between userspace and kernel datapath. + * + * Be sure to update datapath/odp-compat.h if you change any of the structures + * in here. */ #ifndef OPENVSWITCH_DATAPATH_PROTOCOL_H #define OPENVSWITCH_DATAPATH_PROTOCOL_H 1 |