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>
Showing
- drivers/net/vrf.c 4 additions, 1 deletiondrivers/net/vrf.c
- include/linux/skbuff.h 12 additions, 0 deletionsinclude/linux/skbuff.h
- include/net/sock.h 14 additions, 0 deletionsinclude/net/sock.h
- net/ipv4/ip_output.c 4 additions, 1 deletionnet/ipv4/ip_output.c
- net/ipv6/ip6_output.c 1 addition, 0 deletionsnet/ipv6/ip6_output.c
Loading
Please register or sign in to comment