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=DKIMWL_WL_HIGH,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 9304AC10F13 for ; Tue, 16 Apr 2019 21:35:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54A3321841 for ; Tue, 16 Apr 2019 21:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555450538; bh=yApg8xfmasS2KhT/3h2hd86XXWBD1fL3cYXw4H47FUc=; h=From:To:Cc:Subject:Date:List-ID:From; b=KjISp4hO/sM88SYAjAb/Px+uhYdJEpWWPhoeQpd6LPST1LI1VOO1AyuaZlCvMLk/3 5X8QzyhE0qPrVS7vTslvpFiV+uUIHOCSc95w2i6rgT5X0faN5/4Cc0TBcL1CDKWi4I 7K8edXwplAbBvsB9ddA07vsSf/ShXxhg1BcHXHNI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729118AbfDPVfh (ORCPT ); Tue, 16 Apr 2019 17:35:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:47796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfDPVfg (ORCPT ); Tue, 16 Apr 2019 17:35:36 -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 BAA0A2075B; Tue, 16 Apr 2019 21:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555450535; bh=yApg8xfmasS2KhT/3h2hd86XXWBD1fL3cYXw4H47FUc=; h=From:To:Cc:Subject:Date:From; b=Bx4gIiSOxD1GmN5XGnKlbPXzHuwpc4CQhOITDj6QD8xXp9frJizunKXpEdIevx5QC aSldp8QLudXlTF9w3vaZJ1f5GqgGzHr1q9uIpGraqqKO+Wkf7/CmoAmhz4mDeHRCdC Vb7y9eSOo3JGfqeGvBcy6madHESfSIbS5MhxRTDA= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v2 net-next 00/13] ipv6: Use fib6_result for fib_lookups Date: Tue, 16 Apr 2019 14:35:58 -0700 Message-Id: <20190416213611.8724-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 Add fib6_result as a single data structure to hold results from a fib lookup. IPv6 currently has everything in 1 data structure - a fib6_info, but with nexthop objects the fib6_nh can be in a nexthop or a nexthop can be a blackhole which affects the fib6_type and flags (REJECT). v2 - fixed 2 bugs in patch12: i. checking return from fib6_table_lookup in fib6_lookup ii. call to fib6_rule_saddr in fib6_rule_action_alt should use res->nh David Ahern (13): ipv6: Rename fib6_multipath_select and pass fib6_result ipv6: Pass fib6_result to rt6_find_cached_rt ipv6: Pass fib6_result to ip6_rt_cache_alloc ipv6: Pass fib6_result to ip6_create_rt_rcu ipv6: Pass fib6_result to pcpu route functions ipv6: Pass fib6_result to ip6_rt_get_dev_rcu and ip6_rt_copy_init ipv6: Pass fib6_result to rt6_insert_exception ipv6: Pass fib6_result to ip6_mtu_from_fib6 and fib6_mtu ipv6: Pass fib6_result to rt6_device_match ipv6: Pass fib6_result to rt6_select and find_rr_leaf ipv6: Pass fib6_result to fib6_table_lookup tracepoint ipv6: Pass fib6_result to fib lookups ipv6: Add fib6_type and fib6_flags to fib6_result include/net/ip6_fib.h | 24 ++- include/net/ip6_route.h | 5 +- include/net/ipv6_stubs.h | 25 ++- include/trace/events/fib6.h | 16 +- net/core/filter.c | 56 +++--- net/ipv6/addrconf_core.c | 29 +-- net/ipv6/af_inet6.c | 2 +- net/ipv6/fib6_rules.c | 34 ++-- net/ipv6/ip6_fib.c | 7 +- net/ipv6/route.c | 443 +++++++++++++++++++++++++------------------- 10 files changed, 348 insertions(+), 293 deletions(-) -- 2.11.0