mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ipv4: Rename ipv4_neigh_lookup() to ipv4_dst_neigh_lookup().
Later, we will add ipv4_neigh_lookup() as a wrapper for neigh_lookup(arp_table(net), ...). The existing ipv4_neigh_lookup() is more like ip6_dst_neigh_lookup(). Let's rename ipv4_neigh_lookup() to ipv4_dst_neigh_lookup(). Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20261003212336.1304988-2-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
45ad84d280
commit
07cc2b151a
|
|
@ -146,9 +146,9 @@ 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,
|
||||
struct sk_buff *skb,
|
||||
const void *daddr);
|
||||
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);
|
||||
|
||||
static struct dst_ops ipv4_dst_ops = {
|
||||
|
|
@ -163,7 +163,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,
|
||||
};
|
||||
|
||||
|
|
@ -409,9 +409,9 @@ void rt_cache_flush(struct net *net)
|
|||
rt_genid_bump_ipv4(net);
|
||||
}
|
||||
|
||||
static struct neighbour *ipv4_neigh_lookup(const struct dst_entry *dst,
|
||||
struct sk_buff *skb,
|
||||
const void *daddr)
|
||||
static struct neighbour *ipv4_dst_neigh_lookup(const struct dst_entry *dst,
|
||||
struct sk_buff *skb,
|
||||
const void *daddr)
|
||||
{
|
||||
const struct rtable *rt = container_of(dst, struct rtable, dst);
|
||||
struct net_device *dev;
|
||||
|
|
@ -2917,7 +2917,7 @@ struct rtable *ip_route_output_key_hash_rcu(struct net *net, struct flowi4 *fl4,
|
|||
static struct dst_ops ipv4_dst_blackhole_ops = {
|
||||
.family = AF_INET,
|
||||
.default_advmss = ipv4_default_advmss,
|
||||
.neigh_lookup = ipv4_neigh_lookup,
|
||||
.neigh_lookup = ipv4_dst_neigh_lookup,
|
||||
.check = dst_blackhole_check,
|
||||
.cow_metrics = dst_blackhole_cow_metrics,
|
||||
.update_pmtu = dst_blackhole_update_pmtu,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user