[ovs-dev] [PATCH net-next 7/8] openvswitch: Drop user features if old user space attempted to create datapath

Jesse Gross jesse at nicira.com
Mon Nov 25 23:40:25 UTC 2013


On Fri, Nov 22, 2013 at 8:56 AM, Thomas Graf <tgraf at suug.ch> wrote:
> diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h
> index 07ef2c3..a6863e2 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
> + *     with NLM_F_REPLACE when creating the datapath.
> + */
> +#define OVS_DATAPATH_VERSION 2

I'm not sure that I understand this comment - I guess it means that
there's no legacy path when using NLM_F_REPLACE?



More information about the dev mailing list