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 2412BC4360F for ; Fri, 5 Apr 2019 13:04:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E65252186A for ; Fri, 5 Apr 2019 13:04:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="kxhrH6Ra" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfDENE4 (ORCPT ); Fri, 5 Apr 2019 09:04:56 -0400 Received: from mail-eopbgr140072.outbound.protection.outlook.com ([40.107.14.72]:7750 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726027AbfDENE4 (ORCPT ); Fri, 5 Apr 2019 09:04:56 -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=dhubtZWg1472NHWnpu1nPgamAbOPJqwrqWdV3J4KKUM=; b=kxhrH6RaxNdbxKXhwUW0Hu7AfSBrAG7DAZTvPx6zKtHGHasQLAixpVHLpTKlMINsgJqx5y0hjVpxek0YIB4mbYkh5OVJwHIk3d3sZ7S8NlhqUZ34A9wqXcDy5xO/O6HkH93lDnbYpOXrUYNWgNP2LHbFOafyH3sSdKrZ5H3MOb0= Received: from VI1PR05MB6111.eurprd05.prod.outlook.com (20.178.204.213) by VI1PR05MB5742.eurprd05.prod.outlook.com (20.178.121.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.13; Fri, 5 Apr 2019 13:04:52 +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:04:52 +0000 From: Ido Schimmel To: David Ahern CC: "davem@davemloft.net" , "netdev@vger.kernel.org" , Jiri Pirko , David Ahern Subject: Re: [PATCH net-next 03/18] net: Replace nhc_has_gw with nhc_gw_family Thread-Topic: [PATCH net-next 03/18] net: Replace nhc_has_gw with nhc_gw_family Thread-Index: AQHU6w7UtSiAbMfzIUaPjHh1dQWqZ6Ytii6A Date: Fri, 5 Apr 2019 13:04:52 +0000 Message-ID: <20190405130449.GC6739@splinter> References: <20190404175007.8150-1-dsahern@kernel.org> <20190404175007.8150-4-dsahern@kernel.org> In-Reply-To: <20190404175007.8150-4-dsahern@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P195CA0076.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::17) 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: ffb8263c-788c-4ebe-578d-08d6b9c74aae 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:VI1PR05MB5742; x-ms-traffictypediagnostic: VI1PR05MB5742: x-microsoft-antispam-prvs: x-forefront-prvs: 0998671D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(39860400002)(136003)(366004)(376002)(396003)(346002)(199004)(189003)(71200400001)(71190400001)(86362001)(6916009)(106356001)(33716001)(33656002)(256004)(6436002)(4326008)(68736007)(105586002)(316002)(14444005)(54906003)(99286004)(14454004)(6486002)(5660300002)(76176011)(97736004)(25786009)(186003)(4744005)(305945005)(6512007)(8936002)(2906002)(53936002)(26005)(9686003)(229853002)(11346002)(486006)(446003)(52116002)(102836004)(81156014)(6506007)(476003)(8676002)(6116002)(66066001)(6246003)(3846002)(386003)(7736002)(81166006)(478600001)(1076003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB5742;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: R2r+mXs+0dwnuOb+g3Ow3nzslYGmwYSeY+15idZCuHUdiHGDP+OrmhVAWga6zYwzypaNQUvBWciJqwmXaCIhMpZfq9cjF/a73rnr4cNQztx1A5s25uHJXERqe5wMhmx4hn0+dwXkSIg2M/6uFzQpZPJ/SLFhl3fwzdblfbFytWZMH3sykec5ZRooFIFukc87eKZHE2QfFlx7y8ENVtXu6O+VzVuqp9WJl3TdXNOFPEk18Ww1jqNmkdGOUGTTi9VwJ3jK0BUkeZdjknZmDMPT6UocVt4MxV/9fr2YZq3jYVrifysXoHHcfA6w50pkbGtvuivFmwtkW3sMtwnPu5iYUXgvoY6G7q5ClpUq87rVtw7Y/7b0vEQIAazLYpURlTX4G+cynHnsOdui7cPUk2uJzMLSINpNYDY2rWrfssMhJcQ= Content-Type: text/plain; charset="us-ascii" Content-ID: <245C7A1F73F4A94782FA37E473EB086B@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffb8263c-788c-4ebe-578d-08d6b9c74aae X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2019 13:04:52.5276 (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: VI1PR05MB5742 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:52AM -0700, David Ahern wrote: > From: David Ahern >=20 > Allow the gateway in a fib_nh_common to be from a different address > family than the outer fib{6}_nh. To that end, replace nhc_has_gw with > nhc_gw_family and update users of nhc_has_gw to check nhc_gw_family. > Now nhc_family is used to know if the nh_common is part of a fib_nh > or fib6_nh (used for container_of to get to route family specific data), > and nhc_gw_family represents the address family for the gateway. >=20 > Signed-off-by: David Ahern Reviewed-by: Ido Schimmel