Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3450091imm; Tue, 17 Jul 2018 05:10:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejExzfRGe4HkS4DTsK8Q2+CeR480Hhkm56SJTYtfsXQzx8vq34TbAzLpMG0HkD3ksLbPis X-Received: by 2002:a62:c8c2:: with SMTP id i63-v6mr415041pfk.73.1531829443017; Tue, 17 Jul 2018 05:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531829442; cv=none; d=google.com; s=arc-20160816; b=VjF6AY/yMlGO1lePWxsghCCbcw3HFBFpnGTlXgQxKV69+xZnTPckAnujCpMnmezUrH AGUdB1gT/2ytVh/9+DL0fnyGTU74uUyWLP3hca7/Xm6QsYlTEoFZVzJQSTLubKGOkLxH 7qXGKK1ws74LirFKxsMc2bhzWYuEYDI8y/IKXceg+LvcgcE6lxMaIE0VW0NvGN7JzF3d q+w082M+bZ2b4HElNyK39+mHx9ds+zURXxc8ux3rZ0Ub33Rysx6XkCmTY7suKPC4z6G3 lVHP1sogmciWSjx+67+OnOXoAC7giyRGKBiwm7W+QTzfrTsFpXUTE8TivFws44NkhniX 0E1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=8ryCZ4dHb3VbKBWxY8esMDpmOCi1WEMXrScWcZzarGI=; b=LepoTPSdr6LJYvPYRiB0qhWt0IDShzS0b1xKcoY3IJhDyHBaAa+7sYo2F0Dy/VfKrE xIut1B8+0EMmDLdGAPJTJp7CpI2WWEkmFN+VgZgJTD3mxidI1tguEYcc+wwsT1AGmp/s x03yMi/bkRA/z9ddgKUgNqnz6DT6i5NMYjLG2UeyOt4NaAZif+Ntt1WJACK2D/RboR01 1ITOzdZmATSBcAwdR89iDfFWAR2OLppJNvgb91iwMC0F+rY+3ORdN4S92B4ioKaTRJVk IFCbzGJuiQGb2/Zxa1RBQzD41mZ/m8DLYulnWGRpW5pUEgrpCotJokNThYtxoziNniAd XMRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqjdwytD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c192-v6si735800pfg.347.2018.07.17.05.10.28; Tue, 17 Jul 2018 05:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqjdwytD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731710AbeGQMlu (ORCPT + 99 others); Tue, 17 Jul 2018 08:41:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:60628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731293AbeGQMjG (ORCPT ); Tue, 17 Jul 2018 08:39:06 -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 0A4DA2145D; Tue, 17 Jul 2018 12:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531829205; bh=l0XadBySdZEszOh3O0s3O72VhezJaGmZX7d9gRWWLFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqjdwytD4h5kuWzXrVkehOCykoAFkafqa9pzuhtDReinks3NOTL274FVILZKT+Ru1 /sMvO+2wsWybc14iwAdS0dtGCgAiwKs3xFbjlhrYP7U8TOs64+e2l2k5d0ZiIejptj VqnEas24NBL0rkkT//2yjb+iFpfGTGX6IjLjiwzc= From: dsahern@kernel.org To: netdev@vger.kernel.org Cc: nikita.leshchenko@oracle.com, roopa@cumulusnetworks.com, stephen@networkplumber.org, idosch@mellanox.com, jiri@mellanox.com, saeedm@mellanox.com, alex.aring@gmail.com, linux-wpan@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, David Ahern Subject: [PATCH RFC/RFT net-next 01/17] net/ipv4: rename ipv4_neigh_lookup to ipv4_dst_neigh_lookup Date: Tue, 17 Jul 2018 05:06:35 -0700 Message-Id: <20180717120651.15748-2-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180717120651.15748-1-dsahern@kernel.org> References: <20180717120651.15748-1-dsahern@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Ahern Consistency with ipv6 name for similar function and allows ipv4_neigh_lookup to be reused for the wrapper to the arp table. --- net/ipv4/route.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 1df6e97106d7..74e1df60ab7f 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -153,7 +153,7 @@ static u32 *ipv4_cow_metrics(struct dst_entry *dst, unsigned long old) return NULL; } -static struct neighbour *ipv4_neigh_lookup(const struct dst_entry *dst, +static struct neighbour *ipv4_dst_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr); static void ipv4_confirm_neigh(const struct dst_entry *dst, const void *daddr); @@ -170,7 +170,7 @@ static struct dst_ops ipv4_dst_ops = { .update_pmtu = ip_rt_update_pmtu, .redirect = ip_do_redirect, .local_out = __ip_local_out, - .neigh_lookup = ipv4_neigh_lookup, + .neigh_lookup = ipv4_dst_neigh_lookup, .confirm_neigh = ipv4_confirm_neigh, }; @@ -430,7 +430,7 @@ void rt_cache_flush(struct net *net) rt_genid_bump_ipv4(net); } -static struct neighbour *ipv4_neigh_lookup(const struct dst_entry *dst, +static struct neighbour *ipv4_dst_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr) { @@ -2537,7 +2537,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = { .update_pmtu = ipv4_rt_blackhole_update_pmtu, .redirect = ipv4_rt_blackhole_redirect, .cow_metrics = ipv4_rt_blackhole_cow_metrics, - .neigh_lookup = ipv4_neigh_lookup, + .neigh_lookup = ipv4_dst_neigh_lookup, }; struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig) -- 2.11.0