net: add confirm_neigh method to dst_ops
authorJulian Anastasov <ja@ssi.bg>
Mon, 6 Feb 2017 21:14:15 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:07:46 +0000 (13:07 -0500)
commit63fca65d08632fbec9d9b655f671cf08aa1aeeb8
tree103ac18cddcdf911a8589f52fbcefb7140411a51
parentc3a2e8370534f810cac6050169db0ed3e0f94f0b
net: add confirm_neigh method to dst_ops

Add confirm_neigh method to dst_ops and use it from IPv4 and IPv6
to lookup and confirm the neighbour. Its usage via the new helper
dst_confirm_neigh() should be restricted to MSG_PROBE users for
performance reasons.

For XFRM prefer the last tunnel address, if present. With help
from Steffen Klassert.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/arp.h
include/net/dst.h
include/net/dst_ops.h
include/net/ndisc.h
net/ipv4/route.c
net/ipv6/route.c
net/xfrm/xfrm_policy.c