diff mbox

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

Message ID 1450993497-43788-1-git-send-email-joe@ovn.org
State Deferred
Headers show

Commit Message

Joe Stringer Dec. 24, 2015, 9:44 p.m. UTC
Signed-off-by: Joe Stringer <joe@ovn.org>
---
 datapath/linux/compat/include/net/inetpeer.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Joe Stringer Dec. 24, 2015, 9:57 p.m. UTC | #1
On 24 December 2015 at 13:44, Joe Stringer <joe@ovn.org> wrote:
> Signed-off-by: Joe Stringer <joe@ovn.org>

I realised this is only needed in conjunction with another series I'm
working on; This has no effect on master. I will resubmit this patch
as part of that series.
diff mbox

Patch

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)