diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-12-03 20:56:22 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-12-16 17:03:06 -0800 |
commit | 94358dcffbec33cbcfd425e925139fd7e9d6153f (patch) | |
tree | cadc728ca523665427fc356a8a4312033c14f4f6 /include/linux | |
parent | c58cc9a460fd158e5250e59902e96ac677dc115f (diff) | |
download | openvswitch-94358dcffbec33cbcfd425e925139fd7e9d6153f.tar.gz |
datapath: Drop user features if old user space attempted to create datapath
Drop user features if an outdated user space instance that does not
understand the concept of user_features attempted to create a new
datapath.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/openvswitch.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index 585fa6307..5137c2f59 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h @@ -60,7 +60,15 @@ struct ovs_header { #define OVS_DATAPATH_FAMILY "ovs_datapath" #define OVS_DATAPATH_MCGROUP "ovs_datapath" -#define OVS_DATAPATH_VERSION 0x1 + +/* V2: + * - API users are expected to provide OVS_DP_ATTR_USER_FEATURES + * when creating the datapath. + */ +#define OVS_DATAPATH_VERSION 2 + +/* First OVS datapath version to support features */ +#define OVS_DP_VER_FEATURES 2 enum ovs_datapath_cmd { OVS_DP_CMD_UNSPEC, |