summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-12-13 15:22:19 +0100
committerJesse Gross <jesse@nicira.com>2014-01-06 15:53:00 -0800
commit44da5ae5fbea4686f667dc854e5ea16814e44c59 (patch)
tree66c2cb74f950abe16d4b811068bfefb045037e05 /include/uapi
parent43d4be9cb55f3bac5253e9289996fd9d735531db (diff)
downloadop-kernel-dev-44da5ae5fbea4686f667dc854e5ea16814e44c59.zip
op-kernel-dev-44da5ae5fbea4686f667dc854e5ea16814e44c59.tar.gz
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')
-rw-r--r--include/uapi/linux/openvswitch.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h
index 07ef2c3..970553c 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,
OpenPOWER on IntegriCloud