[ovs-dev,RFC,1/2] erspan: fix compile error for kernel 4.15

Message ID 1519251571-109146-2-git-send-email-u9012063@gmail.com
State Superseded
Headers show
Series
  • tunnel: add erspan support.
Related show

Commit Message

William Tu Feb. 21, 2018, 10:19 p.m.
Signed-off-by: William Tu <u9012063@gmail.com>
---
 datapath/linux/compat/include/net/ip6_fib.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/datapath/linux/compat/include/net/ip6_fib.h b/datapath/linux/compat/include/net/ip6_fib.h
index 4d58375958a2..8545f4001f40 100644
--- a/datapath/linux/compat/include/net/ip6_fib.h
+++ b/datapath/linux/compat/include/net/ip6_fib.h
@@ -30,9 +30,9 @@  static inline u32 rt6_get_cookie(const struct rt6_info *rt)
 #ifdef HAVE_DST_NOCACHE
 	    (unlikely(rt->dst.flags & DST_NOCACHE) && rt->dst.from))
 #else
-	    (unlikely(!list_empty(&rt->rt6i_uncached)) && rt->dst.from))
+	    (unlikely(!list_empty(&rt->rt6i_uncached)) && rt->from))
 #endif
-		rt = (struct rt6_info *)(rt->dst.from);
+		rt = (struct rt6_info *)(rt->from);
 
 	return rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0;
 }