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 BC731C43381 for ; Mon, 1 Apr 2019 16:25:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83504218FF for ; Mon, 1 Apr 2019 16:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554135953; bh=WaL25tC84WkBO0SAoImGhusbZ6KNDynefTGYcZebdkI=; h=From:To:Cc:Subject:Date:List-ID:From; b=r7mbpuN9w5KYj2Ew14ST/EN9LIyAA5KU9DR/nB4/hJZdDdTMkXG4+2oPSgWZmkY6o aNQZ8W+By9RMiVd36rEtqgmpJsL0mip9TbqsoDAl6WY2PnYkoHvm+XVGqIwg2mkKbQ UTsB3w01JA67NL79UHZqppVet2V1ViWXeWrdrS5I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728640AbfDAQZw (ORCPT ); Mon, 1 Apr 2019 12:25:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:48384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbfDAQZw (ORCPT ); Mon, 1 Apr 2019 12:25:52 -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 51C4B2133D; Mon, 1 Apr 2019 16:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554135951; bh=WaL25tC84WkBO0SAoImGhusbZ6KNDynefTGYcZebdkI=; h=From:To:Cc:Subject:Date:From; b=K3h+UMWQIqEshLesMqNX/f5e5v7fsAhWEfvWzqWI40Fyn/0ytcRgoDpRUjjIoVfLz PjV7sJMgAFZfYxHi0sNa0VNZpqD46OKciBsp/R3EK1dughyiuOQN7AA2Nb6C7oauXt DOjTSfsdabZJtmev6WCpSOCIekwHen/nwOd11lxw= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v2 net-next 0/5] net: More movement to fib_nh_common Date: Mon, 1 Apr 2019 09:25:58 -0700 Message-Id: <20190401162603.26914-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 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 | 220 ++++++++++++++++++++++++++++++++------------- net/ipv4/fib_trie.c | 13 +-- net/ipv4/route.c | 60 ++++++++----- net/ipv6/route.c | 78 ++-------------- 9 files changed, 273 insertions(+), 214 deletions(-) -- 2.11.0