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
40 40
41#define OVS_DATAPATH_FAMILY "ovs_datapath"41#define OVS_DATAPATH_FAMILY "ovs_datapath"
42#define OVS_DATAPATH_MCGROUP "ovs_datapath"42#define OVS_DATAPATH_MCGROUP "ovs_datapath"
43#define OVS_DATAPATH_VERSION 0x143
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
44 52
45enum ovs_datapath_cmd {53enum ovs_datapath_cmd {
46 OVS_DP_CMD_UNSPEC,54 OVS_DP_CMD_UNSPEC,