Return-Path: Received: from mail-by2nam01on0103.outbound.protection.outlook.com ([104.47.34.103]:38992 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753799AbeARVAR (ORCPT ); Thu, 18 Jan 2018 16:00:17 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: David Forster , "David S . Miller" , Sasha Levin Subject: [added to the 4.1 stable tree] vti6: return GRE_KEY for vti6 Date: Thu, 18 Jan 2018 20:59:42 +0000 Message-ID: <20180118205908.3220-35-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: David Forster This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 7dcdf941cdc96692ab99fd790c8cc68945514851 ] Align vti6 with vti by returning GRE_KEY flag. This enables iproute2 to display tunnel keys on "ip -6 tunnel show" Signed-off-by: David Forster Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv6/ip6_vti.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index 6ac448d8dd76..2ded71f4c299 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -681,6 +681,10 @@ vti6_parm_to_user(struct ip6_tnl_parm2 *u, const struc= t __ip6_tnl_parm *p) u->link =3D p->link; u->i_key =3D p->i_key; u->o_key =3D p->o_key; + if (u->i_key) + u->i_flags |=3D GRE_KEY; + if (u->o_key) + u->o_flags |=3D GRE_KEY; u->proto =3D p->proto; =20 memcpy(u->name, p->name, sizeof(u->name)); --=20 2.11.0