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 B7B1CC43219 for ; Sun, 28 Apr 2019 02:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86522214C6 for ; Sun, 28 Apr 2019 02:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556418401; bh=vRH21xMC9Iet0oiqgzcaFhg5/xFgBCJQQnlnA47KDVE=; h=From:To:Cc:Subject:Date:List-ID:From; b=wdRQNiUdzuPeC+fMKwQ3BGJaL6GLfp7I5pzffRK9PYINJq0j6t1sZZYvNLe0qnLmM 19W3JPtlvqaMJj71tQWrrZVjo3o2V3dVB1OK9Bv9QX3iCv3UEfTnQzNLrhPR8paLbG Cj6cqYqe0+nL9KTWyOJ/ChUq9FkCLCF63O5guQbg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbfD1C0j (ORCPT ); Sat, 27 Apr 2019 22:26:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:44010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfD1C0j (ORCPT ); Sat, 27 Apr 2019 22:26:39 -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 24AE320881; Sun, 28 Apr 2019 02:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556418399; bh=vRH21xMC9Iet0oiqgzcaFhg5/xFgBCJQQnlnA47KDVE=; h=From:To:Cc:Subject:Date:From; b=f8NTVNiYmpGIr4K/inpoh6ZkUxNzy08V8JwjPqPQ3XA6pxGcS2/WWjxB/S+CVBfRe +VJiapfeu0RD9X7fkzEpbAdEPaKGu61vqt9hkQ9PeqnZHGC5s37h2yw0k5nug7iobi P5B6JNWIfBMrmVzcw4TkFX0NiO/CHhNK3GK2Qp/0= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v2 net-next 0/7] ipv4 ipv6: Move location of pcpu route cache and exceptions Date: Sat, 27 Apr 2019 19:27:27 -0700 Message-Id: <20190428022734.21965-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. v2 - reverted patch 2 to use ifdef CONFIG_IP_ROUTE_CLASSID instead of IS_ENABLED(CONFIG_IP_ROUTE_CLASSID) to fix compile issues reported by kbuild test robot 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 | 75 ++++++------ net/ipv6/addrconf.c | 6 +- net/ipv6/ip6_fib.c | 62 ++++------ net/ipv6/route.c | 302 +++++++++++++++++++++++++++++++++-------------- 7 files changed, 305 insertions(+), 204 deletions(-) -- 2.11.0