Skip to contentSkip to conversation

ip6_gre: update version related info when changing link

PATCH In review Hangbin Liu 2 participants 2 messages Jan 10, 2019 – Jan 15, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip6_gre: update version related info when changing link

We forgot to update ip6erspan version related info when changing link, which will cause setting new hwid failed.

Fixes 94d7d8f292870 ("ip6_gre: add erspan v2 support")
---
 net/ipv6/ip6_gre.c | 4 ++++
 1 file changed, 4 insertions(+)
net/ipv6/ip6_gre.c +4 -0
index 09d0826742f8..5ca0dbc077df 100644
@@ -1169,6 +1169,10 @@ static void ip6gre_tnl_copy_tnl_parm(struct ip6_tnl *t,
 	t->parms.i_flags = p->i_flags;
 	t->parms.o_flags = p->o_flags;
 	t->parms.fwmark = p->fwmark;
+	t->parms.erspan_ver = p->erspan_ver;
+	t->parms.index = p->index;
+	t->parms.dir = p->dir;
+	t->parms.hwid = p->hwid;
 	dst_cache_reset(&t->dst_cache);
 }
 
Signature · 1 line
2.19.2