Message ID | 20190327032942.20473-1-dsahern@kernel.org |
---|---|
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="x7LwqJl5"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44TYQs3zY3z9sTQ for <patchwork-incoming-netdev@ozlabs.org>; Wed, 27 Mar 2019 14:29:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732016AbfC0D3x (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Tue, 26 Mar 2019 23:29:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:60322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbfC0D3x (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 26 Mar 2019 23:29:53 -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 3CB5E2075E; Wed, 27 Mar 2019 03:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553657392; bh=y7TppZ1hWCpX7nYHHc6MRRvpkNDBBRx7M/+YMG7psR4=; h=From:To:Cc:Subject:Date:From; b=x7LwqJl5jMCNuJJUDdAfdGAc/0Mh7vmd/J1u4fgWe3uQP0iRsMKFA+EC3NNk5ige0 0KM3Qm5qtgEWon2pQ+7QBnFGHetBwpGKFNXhVGz+mCr+TZw4kNDBT316FI1+cVQH7r uuFqQx93cEfQddZXNFLhMq7HhHvIpGpgTqBIFkNQ= From: David Ahern <dsahern@kernel.org> To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, jiri@mellanox.com, saeedm@mellanox.com, David Ahern <dsahern@gmail.com> Subject: [PATCH net-next 00/13] net: Move fib_nh and fib6_nh to a common struct Date: Tue, 26 Mar 2019 20:29:29 -0700 Message-Id: <20190327032942.20473-1-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
net: Move fib_nh and fib6_nh to a common struct
|
expand
|
From: David Ahern <dsahern@gmail.com> 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. 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 | 56 +-- 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 | 470 +++++++++++---------- 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 | 440 +++++++++---------- 19 files changed, 654 insertions(+), 568 deletions(-)