openvswitch: Allow OVS_USERSPACE_ATTR_USERDATA to be variable length.
authorBen Pfaff <blp@nicira.com>
Sat, 16 Feb 2013 01:29:22 +0000 (17:29 -0800)
committerJesse Gross <jesse@nicira.com>
Sat, 23 Feb 2013 00:29:22 +0000 (16:29 -0800)
commit4490108b4a5ada14c7be712260829faecc814ae5
tree1a8aa00a6e518cd597b8ffda27f5e357c998a33b
parent14408dba8440ef629a3a2827bc4c7b5045889295
openvswitch: 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>
Signed-off-by: Jesse Gross <jesse@nicira.com>
include/linux/openvswitch.h
net/openvswitch/datapath.c
net/openvswitch/datapath.h