mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ip6_gre: update version related info when changing link
[ Upstream commit80b3671e93] We forgot to update ip6erspan version related info when changing link, which will cause setting new hwid failed. Reported-by: Jianlin Shi <jishi@redhat.com> Fixes:94d7d8f292("ip6_gre: add erspan v2 support") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c9fe9d194d
commit
6c4d069aec
@@ -1187,6 +1187,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user