From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hangbin Liu Subject: [PATCH net] ip6_gre: update version related info when changing link Date: Thu, 10 Jan 2019 11:17:42 +0800 Message-ID: <20190110031742.10834-1-liuhangbin@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: William Tu , "David S . Miller" , Hangbin Liu To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:40628 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfAJDSJ (ORCPT ); Wed, 9 Jan 2019 22:18:09 -0500 Received: by mail-pg1-f193.google.com with SMTP id z10so4210404pgp.7 for ; Wed, 09 Jan 2019 19:18:08 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: We forgot to update ip6erspan version related info when changing link, which will cause setting new hwid failed. Reported-by: Jianlin Shi Fixes: 94d7d8f292870 ("ip6_gre: add erspan v2 support") Signed-off-by: Hangbin Liu --- net/ipv6/ip6_gre.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 09d0826742f8..5ca0dbc077df 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -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); } -- 2.19.2