[ovs-dev] [PATCH 1/2] datapath: Fix build on Linux-4.3.

Joe Stringer joe at ovn.org
Thu Dec 24 21:44:56 UTC 2015


Signed-off-by: Joe Stringer <joe at ovn.org>
---
 datapath/linux/compat/include/net/inetpeer.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datapath/linux/compat/include/net/inetpeer.h b/datapath/linux/compat/include/net/inetpeer.h
index 02e9d440a60c..68a1732388c1 100644
--- a/datapath/linux/compat/include/net/inetpeer.h
+++ b/datapath/linux/compat/include/net/inetpeer.h
@@ -3,7 +3,8 @@
 
 #include_next <net/inetpeer.h>
 
-#ifdef OVS_FRAGMENT_BACKPORT
+#if defined(OVS_FRAGMENT_BACKPORT) && \
+    LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
 static inline struct inet_peer *rpl_inet_getpeer_v4(struct inet_peer_base *base,
 						    __be32 v4daddr, int vif,
 						    int create)
-- 
2.1.4




More information about the dev mailing list