From: Pravin Shelar Date: Mon, 26 Sep 2011 19:30:50 +0000 (-0700) Subject: datapath: Fix OVS build failure on older kernel X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c50f96801d3159aad2de02407305463c68f51a;p=openvswitch 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 --- diff --git a/datapath/linux/compat/include/net/genetlink.h b/datapath/linux/compat/include/net/genetlink.h index c91408ee..b24f8518 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 */