projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1b3f6
)
datapath: Fix OVS build failure on older kernel
author
Pravin Shelar
<pshelar@nicira.com>
Mon, 26 Sep 2011 19:30:50 +0000
(12:30 -0700)
committer
Pravin 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
patch
|
blob
|
history
diff --git
a/datapath/linux/compat/include/net/genetlink.h
b/datapath/linux/compat/include/net/genetlink.h
index c91408eeb0f8f17408d747552a0b826057e601a8..b24f8518a5c48de2d58ec73739475490a54943f6 100644
(file)
--- 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 */