On Sun, Sep 25, 2011 at 9:34 PM, Pravin Shelar <[email protected]> wrote:
> diff --git a/datapath/linux/compat/include/net/genetlink.h 
> b/datapath/linux/compat/include/net/genetlink.h
> index c91408e..035394e 100644
> --- a/datapath/linux/compat/include/net/genetlink.h
> +++ b/datapath/linux/compat/include/net/genetlink.h
> @@ -168,4 +168,12 @@ static inline struct net *genl_info_net(struct genl_info 
> *info)
>  }
>  #endif
>
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
> +#define genlmsg_unicast(ignore_sk, skb, pid)   rpl_genlmsg_unicast(skb, pid)

The thing being ignored here is net, not the sock.

> +
> +static inline int rpl_genlmsg_unicast(struct sk_buff *skb, u32 pid)
> +{
> +       return nlmsg_unicast(genl_sock, skb, pid);
> +}

This version of the function is identical to the one in these kernel.
I think you can write this simply as:
#define genlmsg_unicast(ignore_net, skb, pid) genlmsg_unicast(skb, pid)
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to