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 F16A4C43218 for ; Sat, 27 Apr 2019 01:56:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B58CF206BA for ; Sat, 27 Apr 2019 01:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556330186; bh=JsOnzQpCc0g9QT9uz5AzOwgZ5SHEfR/JxgnH9q2xBjI=; h=From:To:Cc:Subject:Date:List-ID:From; b=lYorVyw++8YQTghARnrpAsgF6HurC6f2zAxpYjgL5ePa9W/QzMoFKGv0/B/TnFUSQ H9Ch+qBSTcxW6mfbhDTkzanYbJkDE/FSom64Mic+IR88nuLglm/bheHWEU5oXXsupZ anqpOfaQzC5cL2UhovWpf3XMCEPMRwHW9BUNLlQ4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbfD0B4Z (ORCPT ); Fri, 26 Apr 2019 21:56:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:56144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbfD0B4C (ORCPT ); Fri, 26 Apr 2019 21:56:02 -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 9E940205F4; Sat, 27 Apr 2019 01:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556330161; bh=JsOnzQpCc0g9QT9uz5AzOwgZ5SHEfR/JxgnH9q2xBjI=; h=From:To:Cc:Subject:Date:From; b=ws+NxNppDFNGQ6gwNhMriUUXYCd8Yn2Zu6+4XUH/eWkcNOBTDnERZt0/3wcPr2IcC EJrzfzBXE5Q25IFnd7IzbhJ9NEQm8ynVIAnveh6AVsYBAU+eJINK65gfG+xVLpUz1/ CEMN7rP40OWuGb2DFDpJxLdaYLegochdrCtjFMEE= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH net-next 0/7] ipv4 ipv6: Move location of pcpu route cache and exceptions Date: Fri, 26 Apr 2019 18:56:50 -0700 Message-Id: <20190427015657.24655-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 This series moves IPv4 pcpu cached routes from fib_nh to fib_nh_common to make the caches avaialable for IPv6 nexthops (fib6_nh) with IPv4 routes. This allows a fib6_nh struct to be used with both IPv4 and and IPv6 routes. In addition pcpu caches and exception entries for IPv6 routes are moved from fib6_info to fib6_nh since they are really a function of the device and gateway. During the move of each, functions are refactored such that the core logic is in new helpers that take a fib6_nh versus a fib6_info. David Ahern (7): ipv4: Move cached routes to fib_nh_common ipv4: Pass fib_nh_common to rt_cache_route ipv4: Move exception bucket to nh_common ipv6: Move pcpu cached routes to fib6_nh ipv6: Refactor fib6_drop_pcpu_from ipv6: Refactor exception functions ipv6: Move exception bucket to fib6_nh include/net/ip6_fib.h | 11 +- include/net/ip_fib.h | 8 +- net/ipv4/fib_semantics.c | 45 +++---- net/ipv4/route.c | 78 ++++++------ net/ipv6/addrconf.c | 6 +- net/ipv6/ip6_fib.c | 62 ++++------ net/ipv6/route.c | 302 +++++++++++++++++++++++++++++++++-------------- 7 files changed, 306 insertions(+), 206 deletions(-) -- 2.11.0