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 F21E6C10F00 for ; Tue, 2 Apr 2019 21:12:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5C762075E for ; Tue, 2 Apr 2019 21:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554239522; bh=teaWEcl7ZuLSs27P8/06aeMju4oT0tT8F4ZZ3UGj9YQ=; h=From:To:Cc:Subject:Date:List-ID:From; b=i6YKbb1GucKyZDik8DPyFVdHpgmjFrte+Nn7OHRbTatbL+rg0+2Y2zKBVXcW79suS 4v1pZN1+nvMMzXCartMkW15ZB5Jq0weUvXthpEVwufjku/RyY+T1swMF7thZqsjcsI 1a8svh2dYb3beoiA4ht8rBHRVyjBGjnqFTYfd5eA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726213AbfDBVLo (ORCPT ); Tue, 2 Apr 2019 17:11:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:42200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725822AbfDBVLo (ORCPT ); Tue, 2 Apr 2019 17:11:44 -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 1604620674; Tue, 2 Apr 2019 21:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554239503; bh=teaWEcl7ZuLSs27P8/06aeMju4oT0tT8F4ZZ3UGj9YQ=; h=From:To:Cc:Subject:Date:From; b=A1qQgI6L3nkroapd47m3l6UU6a6ra5kd6bVjcYkMK/GSvotpdbkZReTjB4wrdcCoZ ARtTt6FzuW0Afnk69vXff7kqZimPon/TMlzVxhrt+i9gle8Rp8ULpNFfgN4e8+9uBz NGDsGzqqqEtWRH3NVWRIr1p2tVVsILyKcFErSD1A= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v4 net-next 0/5] net: More movement to fib_nh_common Date: Tue, 2 Apr 2019 14:11:53 -0700 Message-Id: <20190402211158.19459-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 Second set of three with the end goal of enabling IPv6 gateways with IPv4 routes. This set moves: - the ipv4 tracepoint to take a fib_nh_common and updates it to handle a v6 gateway. - consolidates route notifications to use the same fill functions for both ipv4 and ipv6 v4 - enhanced the commit message for patches 1 and 2 v3 - comments from Martin: + renamed FIB_RES_NH to FIB_RES_NHC + removed family check from fib_result_prefsrc + in fib_nexthop_info, renamed nexthop arg to nhc and dropped for_ipv4 arg v2 - dropped patches moving cached routes and exception buckets to fib_nh_common. The goal is allowing a fib6_nh to be used with an IPv4 route. The hold up is the need for separate exception buckets - one for v6 routes and one for v4 routes. When all of the nexthop patches are in, adding a secondi exception bucket pushes IPv6 fib6_info allocations over 256 which means fib6_info allocations roll up to 512. Hence, deferring the patches until some data mining can be done to keep the allocations at 256. David Ahern (5): ipv4: Update fib_table_lookup tracepoint to take common nexthop ipv4: Add fib_nh_common to fib_result ipv4: Refactor nexthop attributes in fib_dump_info ipv4: Change fib_nexthop_info and fib_add_nexthop to take fib_nh_common ipv6: Flip to fib_nexthop_info include/net/ip_fib.h | 52 +++++------ include/trace/events/fib.h | 45 ++++++---- net/core/filter.c | 12 +-- net/ipv4/fib_frontend.c | 6 +- net/ipv4/fib_lookup.h | 1 + net/ipv4/fib_semantics.c | 215 ++++++++++++++++++++++++++++++++------------- net/ipv4/fib_trie.c | 13 +-- net/ipv4/route.c | 60 ++++++++----- net/ipv6/route.c | 77 ++-------------- 9 files changed, 267 insertions(+), 214 deletions(-) -- 2.11.0