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=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT 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 E2EDBC43381 for ; Wed, 27 Mar 2019 18:23:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5BD32183F for ; Wed, 27 Mar 2019 18:23:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553711012; bh=a55fSU2SE/SB+aNa24y5nm+FROQ+/1dTKqL7Fw9UThI=; h=From:To:Cc:Subject:Date:List-ID:From; b=eAUFl/8Ay4NOs/pto5FKP0mLtd+Y8IECPB8uQTOB5YCdLUYtrdIMGCM59AO5O77oZ jqejufoGeLV8hlySdCt5py8fp5+JL99YnFyK9WWvW8MJ32q7GBbRC1+D5z4Eqn2Nsf HP4+96lv1cMdofOTHrisUjSEbPwrM9Q2EswbhiYY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390477AbfC0SXb (ORCPT ); Wed, 27 Mar 2019 14:23:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:42040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391263AbfC0SX2 (ORCPT ); Wed, 27 Mar 2019 14:23:28 -0400 Received: from kenny.it.cumulusnetworks.com. (fw.cumulusnetworks.com [216.129.126.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9F4121734; Wed, 27 Mar 2019 18:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553711008; bh=a55fSU2SE/SB+aNa24y5nm+FROQ+/1dTKqL7Fw9UThI=; h=From:To:Cc:Subject:Date:From; b=c/PXcFOD6wZJTd5Vt444qAxFiHgj8/Ha/NFjIm3TpOlcAjPqbGMwVgllW8lV9og92 MPGlji4iiYL8nm8Wf37i8A5c9SA9t1CnSsq1bNEwuotRqM9RpPI7bR9ysQe7Llx0lI rZH5xaWyfm08GPuQlALDIjq+rUBdjFd/e/wj/4rc= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, jiri@mellanox.com, saeedm@mellanox.com, David Ahern Subject: [PATCH v2 net-next 00/13] net: Move fib_nh and fib6_nh to a common struct Date: Wed, 27 Mar 2019 11:23:16 -0700 Message-Id: <20190327182329.18149-1-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Ahern First set of three with the end goal of enabling IPv6 gateways with IPv4 routes. This set refactors ipv4 and ipv6 code to create init and release helpers for each protocol and moving common elements to a fib_nh_common struct. v2 - addressed Ido's comments: cleanup on failure path in nh_init helpers, ordering in fib6_nh_release, and removal of RTF_GATEWAY from fib6_info uses in mlxsw David Ahern (13): ipv4: Define fib_get_nhs when CONFIG_IP_ROUTE_MULTIPATH is disabled ipv4: Move IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN to helper ipv4: Create init helper for fib_nh ipv4: Create cleanup helper for fib_nh ipv6: Create init helper for fib6_nh ipv6: Create cleanup helper for fib6_nh ipv6: Move gateway checks to a fib6_nh setting ipv6: Refactor fib6_ignore_linkdown ipv6: Change rt6_add_nexthop and rt6_nexthop_info to take fib6_nh ipv4: Rename fib_nh entries ipv6: Rename fib6_nh entries net: Add fib_nh_common and update fib_nh and fib6_nh net: Use common nexthop init and release helpers drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c | 12 +- .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 60 +-- drivers/net/ethernet/rocker/rocker_ofdpa.c | 10 +- include/linux/inetdevice.h | 14 + include/net/addrconf.h | 8 + include/net/ip6_fib.h | 18 +- include/net/ip6_route.h | 12 +- include/net/ip_fib.h | 58 ++- include/trace/events/fib.h | 7 +- include/trace/events/fib6.h | 6 +- net/core/filter.c | 16 +- net/ipv4/fib_frontend.c | 10 +- net/ipv4/fib_semantics.c | 473 +++++++++++---------- net/ipv4/fib_trie.c | 14 +- net/ipv4/route.c | 18 +- net/ipv6/addrconf.c | 27 +- net/ipv6/ip6_fib.c | 18 +- net/ipv6/ndisc.c | 8 +- net/ipv6/route.c | 444 +++++++++---------- 19 files changed, 663 insertions(+), 570 deletions(-) -- 2.11.0