[ovs-git] Open vSwitch: datapath: Add __aligned_u64 compat support for user and kernel headers. (master)
dev at openvswitch.org
dev at openvswitch.org
Fri Dec 3 17:36:15 UTC 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".
The branch, master has been updated
via 3fd8e510dc0a5184be2ec4b909b172ff7b7043cf (commit)
via 4029c21acb33723ecc3f621c1c75819651889b58 (commit)
via 5b16f00916dbae0c2a3f91e504332b61f021a91a (commit)
from 8e6c8ff5ae19b04f45905cc35163a855c096d0a3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3fd8e510dc0a5184be2ec4b909b172ff7b7043cf
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=3fd8e510dc0a5184be2ec4b909b172ff7b7043cf
Author: Ben Pfaff <blp at nicira.com>
datapath: Add __aligned_u64 compat support for user and kernel headers.
__aligned_u64 is a 64-bit integer type that is guaranteed to be aligned on
a 64-bit boundary. It is used in ABI structures to allow them to be shared
between 32- and 64-bit userspace without the need for kernel compat code.
The first use in OVS is coming up in this series of patches.
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>
commit 4029c21acb33723ecc3f621c1c75819651889b58
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4029c21acb33723ecc3f621c1c75819651889b58
Author: Ben Pfaff <blp at nicira.com>
datapath: Change vals[] in struct port_lookup_key into discrete members.
The 'vals' array is only convenient for use by port_hash(). It's a
liability otherwise, since it makes the code wider and harder to read and
seems to me less amenable to compiler optimization.
In an upcoming patch the key needed in struct port_lookup_key will
increase in size to 64 bits, so that using an array of u32 becomes even
more problematic. Therefore, this commit gets rid of the array in favor
of discrete named members that carry the same information.
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>
commit 5b16f00916dbae0c2a3f91e504332b61f021a91a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5b16f00916dbae0c2a3f91e504332b61f021a91a
Author: Ben Pfaff <blp at nicira.com>
Format tunnel IDs consistently.
Some code failed to convert tunnel IDs to host byte order for printing,
so this fixes that. Some code printed tunnel IDs with a 0x prefix and
other code didn't, so this code uses the '#' flag consistently (which
prints 0x for nonzero values and omits it for zero).
This commit also stops always printing all 8 digits. When tunnel IDs
are expanded to 64 bits, as they will be soon, printing 16 digits all the
time wastes too much space.
Acked-by: Jesse Gross <jesse at nicira.com>
-----------------------------------------------------------------------
Summary of changes:
datapath/tunnel.c | 50 ++++++++++++++++++++++--------------------------
include/linux/types.h | 13 ++++++++++++
lib/flow.c | 2 +-
lib/odp-util.c | 6 ++--
lib/ofp-print.c | 2 +-
5 files changed, 41 insertions(+), 32 deletions(-)
create mode 100644 include/linux/types.h
hooks/post-receive
--
Open vSwitch
More information about the git
mailing list