net: add dst_pending_confirm flag to skbuff
authorJulian Anastasov <ja@ssi.bg>
Mon, 6 Feb 2017 21:14:12 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:07:46 +0000 (13:07 -0500)
commit4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e
tree1d29569c1059553f11c2da53df68f3698df92906
parent9b8805a325591cf5b6b9df71200de25a2bd721fd
net: add dst_pending_confirm flag to skbuff

Add new skbuff flag to allow protocols to confirm neighbour.
When same struct dst_entry can be used for many different
neighbours we can not use it for pending confirmations.

Add sock_confirm_neigh() helper to confirm the neighbour and
use it for IPv4, IPv6 and VRF before dst_neigh_output.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c
include/linux/skbuff.h
include/net/sock.h
net/ipv4/ip_output.c
net/ipv6/ip6_output.c