ip4_dst_hoplimit was introduced in v2.6.38 rather than v2.6.39.

Fixes: e23775f20e1a ("datapath: Add support for lwtunnel")
Signed-off-by: Simon Horman <simon.hor...@netronome.com>
---
 datapath/linux/compat/include/net/route.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/datapath/linux/compat/include/net/route.h 
b/datapath/linux/compat/include/net/route.h
index bfabdc1a8669..8f336b6955c5 100644
--- a/datapath/linux/compat/include/net/route.h
+++ b/datapath/linux/compat/include/net/route.h
@@ -100,7 +100,9 @@ static inline struct rtable *rpl_ip_route_output_key(struct 
net *net, struct flo
        return rt;
 }
 #define ip_route_output_key rpl_ip_route_output_key
+#endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
 static inline int ip4_dst_hoplimit(const struct dst_entry *dst)
 {
        return dst_metric(dst, RTAX_HOPLIMIT);
-- 
2.1.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to