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=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,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 03B42C282DC for ; Wed, 22 May 2019 19:05:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C738E20862 for ; Wed, 22 May 2019 19:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558551908; bh=ngtFcyO/eM0a2DYgpvx+qpEEgnBZZvNw0/3LTnNC8G4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0MhfUFD6hxvQdR8v5MgnQYgGhgNsk5KUDxx3BH6wLE+lIbxQNxbYi5UyXjRREkCpp BnuogAxXuAuslucHVX+X8wAGjDLfBBStKS8GDnVVYGXgbJGU9IVkV9ShhgffpLsb87 Xkp9u+AClCuRebY2iocNSL0joQ7Dv6jxQO/cAvZU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729710AbfEVTFG (ORCPT ); Wed, 22 May 2019 15:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:35062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729641AbfEVTE7 (ORCPT ); Wed, 22 May 2019 15:04:59 -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 CF4F8217F9; Wed, 22 May 2019 19:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558551898; bh=ngtFcyO/eM0a2DYgpvx+qpEEgnBZZvNw0/3LTnNC8G4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o5mteEeA8FPOuUhgTky2bSAx4NAveNvOraCVOQAFrEHtEc7pS7TOhB9YC2nt0J+VS I5Ny130DblWSEGbUEqOkW9BEflexSBrqHpjLOW47aa4/CO1YzfND6+QeHoJcGlFMYR dJ5yi0UQVprPuosxUnKxYEa7kBdcoVG+00eWbOhE= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH v2 net-next 8/8] ipv4: Rename and export nh_update_mtu Date: Wed, 22 May 2019 12:04:46 -0700 Message-Id: <20190522190446.15486-9-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190522190446.15486-1-dsahern@kernel.org> References: <20190522190446.15486-1-dsahern@kernel.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Ahern Rename nh_update_mtu to fib_nhc_update_mtu and export for use by the nexthop code. Signed-off-by: David Ahern --- include/net/ip_fib.h | 1 + net/ipv4/fib_semantics.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 8511ebb6f7be..70ba0302c8c9 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -432,6 +432,7 @@ int fib_sync_down_dev(struct net_device *dev, unsigned long event, bool force); int fib_sync_down_addr(struct net_device *dev, __be32 local); int fib_sync_up(struct net_device *dev, unsigned char nh_flags); void fib_sync_mtu(struct net_device *dev, u32 orig_mtu); +void fib_nhc_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig); #ifdef CONFIG_IP_ROUTE_MULTIPATH int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4, diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index bd8c51d2c59b..78648072783e 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -1712,7 +1712,7 @@ static int call_fib_nh_notifiers(struct fib_nh *nh, * - if the new MTU is greater than the PMTU, don't make any change * - otherwise, unlock and set PMTU */ -static void nh_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig) +void fib_nhc_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig) { struct fnhe_hash_bucket *bucket; int i; @@ -1748,7 +1748,7 @@ void fib_sync_mtu(struct net_device *dev, u32 orig_mtu) hlist_for_each_entry(nh, head, nh_hash) { if (nh->fib_nh_dev == dev) - nh_update_mtu(&nh->nh_common, dev->mtu, orig_mtu); + fib_nhc_update_mtu(&nh->nh_common, dev->mtu, orig_mtu); } } -- 2.11.0