summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2014-04-28 17:31:25 -0700
committerJarno Rajahalme <jrajahalme@nicira.com>2014-04-28 17:31:25 -0700
commit0141456733976ab0a8204494dd874b74aa686c9c (patch)
tree17e25618a422e2d73904b9fbe0146f6eb8aff4a2 /include/linux
parentea96b766c2092609fe850e9d5f6392252a2f5fa2 (diff)
downloadopenvswitch-0141456733976ab0a8204494dd874b74aa686c9c.tar.gz
openvswitch.h: Note that 64 bit ints are 4-aligned.
In general, all Netlink 64-bit data may be 4-byte aligned, due to netlink header and attributes being 4-aligned. To avoid unaligned access the data should be copied out of the netlink attribute before access. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/openvswitch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index 544c5ba55..8e4b87042 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -109,6 +109,7 @@ enum ovs_datapath_attr {
#define OVS_DP_ATTR_MAX (__OVS_DP_ATTR_MAX - 1)
+/* All 64-bit integers within Netlink messages are 4-byte aligned only. */
struct ovs_dp_stats {
__u64 n_hit; /* Number of flow table matches. */
__u64 n_missed; /* Number of flow table misses. */