summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/openvswitch.h
diff options
context:
space:
mode:
authorThomas Graf2013-12-13 15:22:19 +0100
committerJesse Gross2014-01-07 00:53:00 +0100
commit44da5ae5fbea4686f667dc854e5ea16814e44c59 (patch)
tree66c2cb74f950abe16d4b811068bfefb045037e05 /include/uapi/linux/openvswitch.h
parentopenvswitch: Allow user space to announce ability to accept unaligned Netlink... (diff)
downloadkernel-qcow2-linux-44da5ae5fbea4686f667dc854e5ea16814e44c59.tar.gz
kernel-qcow2-linux-44da5ae5fbea4686f667dc854e5ea16814e44c59.tar.xz
kernel-qcow2-linux-44da5ae5fbea4686f667dc854e5ea16814e44c59.zip
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.h10
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,