diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-12-13 18:22:19 +0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-01-07 03:53:00 +0400 |
commit | 44da5ae5fbea4686f667dc854e5ea16814e44c59 (patch) | |
tree | 66c2cb74f950abe16d4b811068bfefb045037e05 /include/uapi/linux/openvswitch.h | |
parent | 43d4be9cb55f3bac5253e9289996fd9d735531db (diff) | |
download | linux-44da5ae5fbea4686f667dc854e5ea16814e44c59.tar.xz |
openvswitch: 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>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/uapi/linux/openvswitch.h')
-rw-r--r-- | include/uapi/linux/openvswitch.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index 07ef2c3e21fa..970553cbbc8e 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h @@ -40,7 +40,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, |