datapath: Fix OVS build failure on older kernel
authorPravin Shelar <pshelar@nicira.com>
Mon, 26 Sep 2011 19:30:50 +0000 (12:30 -0700)
committerPravin Shelar <pshelar@nicira.com>
Mon, 26 Sep 2011 19:30:50 +0000 (12:30 -0700)
   genlmsg_unicast() API changed for network namespace in 2.6.32.
Following patch handles compatibility for same.

Signed-off-by: Pravin Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/net/genetlink.h

index c91408eeb0f8f17408d747552a0b826057e601a8..b24f8518a5c48de2d58ec73739475490a54943f6 100644 (file)
@@ -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 */