]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: add confirm_neigh method to dst_ops
authorJulian Anastasov <ja@ssi.bg>
Fri, 8 Sep 2017 07:00:00 +0000 (09:00 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Sep 2017 13:49:14 +0000 (15:49 +0200)
commit111757e7b6de9839cb8a22424222db3e6e11beda
tree9fe8ed78e2ca1d58b621d008462782a623c1c763
parenta45f3e2419ec345b2bbc118c17c844fe8ef47c72
net: add confirm_neigh method to dst_ops

BugLink: https://bugs.launchpad.net/bugs/1715812
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>
(cherry picked from commit 63fca65d08632fbec9d9b655f671cf08aa1aeeb8)
Signed-off-by: Daniel Axtens <daniel.axtens@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
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