]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1153610aeb713deef36b9f1630c8d25625c96bf
tree42ccaa80b5485acf92cfc8ce879aca219c31f1ff
parent0f80f1753a13c753a8d961787e2cde61c12ff3fc
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