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.2 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 2C3D5C43219 for ; Mon, 29 Apr 2019 16:15:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE7E0215EA for ; Mon, 29 Apr 2019 16:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556554519; bh=NUgMq87l1wNZvdm8QYrPBu112TACQZmAJyL+tJBib9Q=; h=From:To:Cc:Subject:Date:List-ID:From; b=02mtuxbAfN7vs7vZAqIp/Dxf5+rKgG6C8PPHRU5rR175SRUFyoQIGq0o/e4OVOfdh I5ED2+Sr+AWfARxuTWQEUOnwLFVRBDmIScq11IxozRtscob62JFGeiDYsvzx03X2kE 7KYy6LLwuUY3V7eCuQtC37rHNknd1CIQaduwlRgg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728713AbfD2QPR (ORCPT ); Mon, 29 Apr 2019 12:15:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:43110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbfD2QPR (ORCPT ); Mon, 29 Apr 2019 12:15:17 -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 BC33320673; Mon, 29 Apr 2019 16:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556554516; bh=NUgMq87l1wNZvdm8QYrPBu112TACQZmAJyL+tJBib9Q=; h=From:To:Cc:Subject:Date:From; b=iSwMKUtnWiPV4dnn2/uNKtHPeQtu9mFQSpQHnL1rEbuUXecM7ZxaPGp7xT5As3HnT 1cV0rfgsyU+6kjIJhHeIi4pm1JN4zwg1ZYA/GX7Sm1Lc9WY5yufgusgRA0OOO6RZOt R2DXApnIkpCmCMTugyxgwAA0mCme8VYObJ+M0a4o= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v3 net-next 0/3] ipv4: Move location of pcpu route cache and exceptions Date: Mon, 29 Apr 2019 09:16:16 -0700 Message-Id: <20190429161619.23671-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 available for IPv6 nexthops (fib6_nh) with IPv4 routes. This allows a fib6_nh struct to be used with both IPv4 and and IPv6 routes. v3 - dropped ipv6 patches for now. Will resubmit those once the existing refcnt problem is fixed 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 (3): ipv4: Move cached routes to fib_nh_common ipv4: Pass fib_nh_common to rt_cache_route ipv4: Move exception bucket to nh_common include/net/ip_fib.h | 8 ++++-- net/ipv4/fib_semantics.c | 45 +++++++++++++++-------------- net/ipv4/route.c | 75 ++++++++++++++++++++++-------------------------- 3 files changed, 62 insertions(+), 66 deletions(-) -- 2.11.0