sock: add sk_dst_pending_confirm flag
authorJulian Anastasov <ja@ssi.bg>
Mon, 6 Feb 2017 21:14:11 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:07:46 +0000 (13:07 -0500)
commit9b8805a325591cf5b6b9df71200de25a2bd721fd
tree42ccaa80b5485acf92cfc8ce879aca219c31f1ff
parentb08d46b01e995dd7b653b22d35bd1d958d6ee9b4
sock: add sk_dst_pending_confirm flag

Add new sock flag to allow sockets to confirm neighbour.
When same struct dst_entry can be used for many different
neighbours we can not use it for pending confirmations.
As not all call paths lock the socket use full word for
the flag.

Add sk_dst_confirm as replacement for dst_confirm when
called for received packets.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c