From 98c50f96801d3159aad2de02407305463c68f51a Mon Sep 17 00:00:00 2001 From: Pravin Shelar Date: Mon, 26 Sep 2011 12:30:50 -0700 Subject: [PATCH] datapath: Fix OVS build failure on older kernel genlmsg_unicast() API changed for network namespace in 2.6.32. Following patch handles compatibility for same. Signed-off-by: Pravin Shelar Acked-by: Jesse Gross --- datapath/linux/compat/include/net/genetlink.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datapath/linux/compat/include/net/genetlink.h b/datapath/linux/compat/include/net/genetlink.h index c91408eeb..b24f8518a 100644 --- a/datapath/linux/compat/include/net/genetlink.h +++ b/datapath/linux/compat/include/net/genetlink.h @@ -168,4 +168,7 @@ 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_net, skb, pid) genlmsg_unicast(skb, pid) +#endif #endif /* genetlink.h */ -- 2.43.0