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 54245C4360F for ; Fri, 5 Apr 2019 13:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2066E21850 for ; Fri, 5 Apr 2019 13:14:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="MoFk84x5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728683AbfDENN6 (ORCPT ); Fri, 5 Apr 2019 09:13:58 -0400 Received: from mail-eopbgr20053.outbound.protection.outlook.com ([40.107.2.53]:3744 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726643AbfDENN6 (ORCPT ); Fri, 5 Apr 2019 09:13:58 -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=H8pEOLlWnARi6Iw4LUGwaJImu55RrLFDIcrehxKZJNw=; b=MoFk84x5UYkglsoLCxR+E8CrAlihnjmmAjOkWt0viSU66whbBC9pT3A75yzX+7Yi9zp2Zx/y88N7/mwgDeWxZNBe2WZW/uxkmxYANnAuebBs0t9UgKzIted4pi54uRZwdVdN7Mww7vZB5nz3cBsJ9ZIVknUvWz2gFfNA1rclH/4= Received: from VI1PR05MB6111.eurprd05.prod.outlook.com (20.178.204.213) by VI1PR05MB6302.eurprd05.prod.outlook.com (20.179.24.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.15; Fri, 5 Apr 2019 13:13:53 +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:13:53 +0000 From: Ido Schimmel To: David Ahern CC: "davem@davemloft.net" , "netdev@vger.kernel.org" , Jiri Pirko , David Ahern Subject: Re: [PATCH net-next 04/18] ipv4: Prepare rtable for IPv6 gateway Thread-Topic: [PATCH net-next 04/18] ipv4: Prepare rtable for IPv6 gateway Thread-Index: AQHU6w7U8PvXNNzmdkaSbbpsvEVXHqYtjLMA Date: Fri, 5 Apr 2019 13:13:53 +0000 Message-ID: <20190405131350.GD6739@splinter> References: <20190404175007.8150-1-dsahern@kernel.org> <20190404175007.8150-5-dsahern@kernel.org> In-Reply-To: <20190404175007.8150-5-dsahern@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P192CA0051.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::28) 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: 26052259-e387-4a35-5e8a-08d6b9c88ceb 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:VI1PR05MB6302; x-ms-traffictypediagnostic: VI1PR05MB6302: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(396003)(366004)(346002)(39860400002)(136003)(376002)(199004)(189003)(97736004)(26005)(9686003)(256004)(4744005)(14454004)(53936002)(6512007)(6916009)(106356001)(52116002)(3846002)(66066001)(86362001)(4326008)(1076003)(25786009)(6246003)(71190400001)(186003)(478600001)(33656002)(6116002)(446003)(305945005)(8936002)(81156014)(81166006)(8676002)(99286004)(6506007)(71200400001)(386003)(11346002)(476003)(54906003)(5660300002)(6486002)(105586002)(486006)(76176011)(33716001)(229853002)(2906002)(316002)(102836004)(6436002)(68736007)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB6302;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: 4Au4TR1ROwq6L30AIC3YJsjJtmnMuNH71rIOSel7xhf/VtEBEddUVjjpjJ26wYN7+HM/oc3dqSgOdCqTNSr5mKawMiBpRWJ0JVnqiwBVki2iB8Q4+f1NPI1eprC10wi+rEOvy6OlBGGbDkP1Tpbz/IV3joL4j8GY5eCqLUV+RQAfZyQEVjSkYZdO+8vYAPcizdPHi4Ji+kl8P028sPWoXL9n6gqTC2OPqcr2/DeoJoXltnUvRPErfLZqx1s1wa394Db5QFJODWHSEBhVv9I0in3rQIEl8HT0xADiYt4BxnkkHDruQ4uATOJU/zeP5oL1Q8J1ORFznsx9eqSG78fL7dzuUQAPqHbovin2R6BYlzYdYj7MYwmISvSDeXLNK+qkiVcsmvuNg1OsAa6qLCShq7o0THJRUwrXVt+0o0fUYig= Content-Type: text/plain; charset="us-ascii" Content-ID: <2D72845C052FC341BE0E4D9C429579CA@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26052259-e387-4a35-5e8a-08d6b9c88ceb X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 13:13:53.1259 (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: VI1PR05MB6302 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:53AM -0700, David Ahern wrote: > From: David Ahern >=20 > To allow the gateway to be either an IPv4 or IPv6 address, remove > rt_uses_gateway from rtable and replace with rt_gw_family. If > rt_gw_family is set it implies rt_uses_gateway. Rename rt_gateway > to rt_gw4 to represent the IPv4 version. >=20 > Signed-off-by: David Ahern Reviewed-by: Ido Schimmel