From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FCEDC4360F for ; Fri, 5 Apr 2019 13:48:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 600AB206C0 for ; Fri, 5 Apr 2019 13:48:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="sciDEkjg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728811AbfDENsp (ORCPT ); Fri, 5 Apr 2019 09:48:45 -0400 Received: from mail-eopbgr10040.outbound.protection.outlook.com ([40.107.1.40]:29443 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726027AbfDENsp (ORCPT ); Fri, 5 Apr 2019 09:48:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4lDqkg+9w54aGEM52vEadIfvQ8kOGP4K/LHRd8F2iIM=; b=sciDEkjgJCYaHNJduvEhwD5fJEyVeyBnnRJ0ESEtPmy38r6WSNM5aYWsuuVmzuFY1Minfqc3/GfzFxXjh8gnAcDMEieyAPl3rnsAEqNiWw+YMygLLL72mAFccWsUL/ADrCEFSfiYIGQ0wPcALLqETM3rM81UQVx6TDDFcbFnSVA= Received: from VI1PR05MB6111.eurprd05.prod.outlook.com (20.178.204.213) by VI1PR05MB4814.eurprd05.prod.outlook.com (20.177.50.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Fri, 5 Apr 2019 13:48:41 +0000 Received: from VI1PR05MB6111.eurprd05.prod.outlook.com ([fe80::28c7:8df1:920b:ee0e]) by VI1PR05MB6111.eurprd05.prod.outlook.com ([fe80::28c7:8df1:920b:ee0e%5]) with mapi id 15.20.1771.016; Fri, 5 Apr 2019 13:48:41 +0000 From: Ido Schimmel To: David Ahern CC: "davem@davemloft.net" , "netdev@vger.kernel.org" , Jiri Pirko , David Ahern Subject: Re: [PATCH net-next 06/18] ipv4: Add support to rtable for ipv6 gateway Thread-Topic: [PATCH net-next 06/18] ipv4: Add support to rtable for ipv6 gateway Thread-Index: AQHU6w7UYVyJWMXWCEu4/0QPs48Jk6YtlmoA Date: Fri, 5 Apr 2019 13:48:41 +0000 Message-ID: <20190405134836.GA18494@splinter> References: <20190404175007.8150-1-dsahern@kernel.org> <20190404175007.8150-7-dsahern@kernel.org> In-Reply-To: <20190404175007.8150-7-dsahern@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR04CA0033.eurprd04.prod.outlook.com (2603:10a6:206:1::46) To VI1PR05MB6111.eurprd05.prod.outlook.com (2603:10a6:803:eb::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [79.176.7.115] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 609fc099-da11-459d-39a2-08d6b9cd6981 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VI1PR05MB4814; x-ms-traffictypediagnostic: VI1PR05MB4814: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(396003)(39860400002)(136003)(346002)(376002)(366004)(199004)(189003)(102836004)(6506007)(386003)(8936002)(86362001)(476003)(6116002)(76176011)(486006)(446003)(81166006)(11346002)(6512007)(66066001)(97736004)(52116002)(25786009)(99286004)(6486002)(6436002)(4326008)(229853002)(9686003)(6246003)(68736007)(53936002)(4744005)(54906003)(7736002)(305945005)(33716001)(106356001)(478600001)(8676002)(105586002)(5660300002)(186003)(2906002)(71200400001)(71190400001)(3846002)(256004)(33656002)(14454004)(1076003)(316002)(81156014)(26005)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB4814;H:VI1PR05MB6111.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: KaZZ3TobkJ9z0hEdkW6okvh0jwWUewqDV1aTbFJ96/cvbTr8A3+/+GjFt2mKdjaOpxEi19JD1a83RXZB3aOqjeYpnw12WNQQlulmOPmOLJgQLoWmshm7zgeV+JDECR8hd2MuGrR3n0A/S1srb9wl8NLg4Dd0iL4i7U2odNt9pg40DRqc0dQ3h2G43pCJOVZqy0SJa5E8MHQvWhJi0LJSP8CHzax504RBlgGcAqpadFFCRp4ZS2zzCMlqCrOuxxY+9Nvs9eUFMg/8CFwN6tcvloFmoDXYL66xLoRrbkKxdhgAsbqFDAWTDNQjxDOSBPtWw9kBPp9lwU2R+nkSc4bADeb5b1F815NBoEGdOvUAyNfrLQjmttIRp97C3vDRh5tP+kspoFGpt2qPniavrHXysYd2+ABX211vagLQhhPHMd0= Content-Type: text/plain; charset="us-ascii" Content-ID: <19E9EF067E32184EB90196139F376D75@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 609fc099-da11-459d-39a2-08d6b9cd6981 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 13:48:41.1806 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4814 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Apr 04, 2019 at 10:49:55AM -0700, David Ahern wrote: > From: David Ahern >=20 > Add support for an IPv6 gateway to rtable. Since a gateway is either > IPv4 or IPv6, make it a union with rt_gw4 where rt_gw_family decides > which address is in use. >=20 > When dumping the route data, encode an ipv6 nexthop using RTA_VIA. >=20 > Signed-off-by: David Ahern Reviewed-by: Ido Schimmel