Allow OVS_USERSPACE_ATTR_USERDATA to be variable length.
authorBen Pfaff <blp@nicira.com>
Sat, 16 Feb 2013 00:48:32 +0000 (16:48 -0800)
committerBen Pfaff <blp@nicira.com>
Sat, 16 Feb 2013 00:48:32 +0000 (16:48 -0800)
commite995e3df57ea4e27678bc0bea5eb30872994155b
tree8ef5beb74a4a2dc4e5cb268cb719cb2ce9eb7a56
parent7e2d8aeaf5ef25408a6f345e2611b647851e0120
Allow OVS_USERSPACE_ATTR_USERDATA to be variable length.

Until now, the optional OVS_USERSPACE_ATTR_USERDATA attribute had to be
exactly 64 bits long, if it was present.  However, 64 bits is not enough
space to associate as much information with a flow as would be convenient
for some userspace features now under development.  This commit generalizes
the attribute, allowing it to be any length.

This generalization is backward-compatible: if userspace only uses 64-bit
attributes, then it will not see any change in behavior.

CC: Romain Lenglet <rlenglet@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/datapath.h
include/linux/openvswitch.h
lib/dpif-linux.c
lib/dpif-netdev.c
lib/dpif.h
lib/odp-util.c
lib/odp-util.h
ofproto/ofproto-dpif.c
tests/odp.at