History

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.

Thomas Graf committed 12 years ago

Commit 44da5ae1 parent 43d4be92 files · +30 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/openvswitch.h+9−1
@@ -40,7 +40,15 @@ struct ovs_header { · 39 unmodified lines
4040
4141 #define OVS_DATAPATH_FAMILY "ovs_datapath"
4242 #define OVS_DATAPATH_MCGROUP "ovs_datapath"
43−#define OVS_DATAPATH_VERSION 0x1
43+
44+/* V2:
45+ * - API users are expected to provide OVS_DP_ATTR_USER_FEATURES
46+ * when creating the datapath.
47+ */
48+#define OVS_DATAPATH_VERSION 2
49+
50+/* First OVS datapath version to support features */
51+#define OVS_DP_VER_FEATURES 2
4452
4553 enum ovs_datapath_cmd {
4654 OVS_DP_CMD_UNSPEC,