Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipv4: Eliminate spurious argument to __ipv4_neigh_lookup

'tbl' is always arp_tbl, so specifying it is pointless.

Signed-off-by: David S. Miller <davem@davemloft.net>

+3 -3
+2 -2
include/net/arp.h
··· 15 15 return val * hash_rnd; 16 16 } 17 17 18 - static inline struct neighbour *__ipv4_neigh_lookup(struct neigh_table *tbl, struct net_device *dev, u32 key) 18 + static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key) 19 19 { 20 20 struct neigh_hash_table *nht; 21 21 struct neighbour *n; 22 22 u32 hash_val; 23 23 24 24 rcu_read_lock_bh(); 25 - nht = rcu_dereference_bh(tbl->nht); 25 + nht = rcu_dereference_bh(arp_tbl.nht); 26 26 hash_val = arp_hashfn(key, dev, nht->hash_rnd[0]) >> (32 - nht->hash_shift); 27 27 for (n = rcu_dereference_bh(nht->hash_buckets[hash_val]); 28 28 n != NULL;
+1 -1
net/ipv4/route.c
··· 1127 1127 else if (rt->rt_gateway) 1128 1128 pkey = (const __be32 *) &rt->rt_gateway; 1129 1129 1130 - n = __ipv4_neigh_lookup(&arp_tbl, dev, *(__force u32 *)pkey); 1130 + n = __ipv4_neigh_lookup(dev, *(__force u32 *)pkey); 1131 1131 if (n) 1132 1132 return n; 1133 1133 return neigh_create(&arp_tbl, pkey, dev);