[ovs-dev] [PATCH 2/3] datapath: Add support for 4.2 kernel.

Jesse Gross jesse at nicira.com
Wed Sep 23 02:21:36 UTC 2015


On Fri, Sep 18, 2015 at 3:23 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> diff --git a/datapath/linux/compat/include/linux/net.h b/datapath/linux/compat/include/linux/net.h
> index 9c94745..2a6903d 100644
> --- a/datapath/linux/compat/include/linux/net.h
> +++ b/datapath/linux/compat/include/linux/net.h
[...]
> +#ifndef HAVE_SOCK_CREATE_KERN_NET
> +int ovs_sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res);
> +void ovs_sock_release(struct socket *sock);
> +#define sock_create_kern ovs_sock_create_kern
> +#define sock_release ovs_sock_release
> +#endif

Is there a reason why this is ovs_sock_create_kern() instead of using
rpl_ like in other places? And do we even need sock_release() all now?



More information about the dev mailing list