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 c91408e..b24f851 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 */