]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Inline neigh binding.
authorDavid Miller <davem@davemloft.net>
Mon, 11 Jul 2011 22:44:24 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2011 08:12:28 +0000 (01:12 -0700)
commit292a5d2d14ae491ed9756c5972edfe68bb6b54ce
tree8f6fcf2d822bf3a170a534e8540faa34fe9258ef
parente6ff1d92c474ea82ede82dc97066f4247ae5e45c
ipv4: Inline neigh binding.

Get rid of all of the useless and costly indirection
by doing the neigh hash table lookup directly inside
of the neighbour binding.

Rename from arp_bind_neighbour to rt_bind_neighbour.

Use new helpers {__,}ipv4_neigh_lookup()

In rt_bind_neighbour() get rid of useless tests which
are never true in the context this function is called,
namely dev is never NULL and the dst->neighbour is
always NULL.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/arp.h
net/ipv4/arp.c
net/ipv4/route.c