net: Track socket refcounts in skb_steal_sock()
Refactor the UDP/TCP handlers slightly to allow skb_steal_sock() to make the determination of whether the socket is reference counted in the case where it is prefetched by earlier logic such as early_demux. Signed-off-by:Joe Stringer <joe@wand.net.nz> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Acked-by:
Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20200329225342.16317-3-joe@wand.net.nz
Showing
- include/net/inet6_hashtables.h 1 addition, 2 deletionsinclude/net/inet6_hashtables.h
- include/net/inet_hashtables.h 1 addition, 2 deletionsinclude/net/inet_hashtables.h
- include/net/sock.h 9 additions, 1 deletioninclude/net/sock.h
- net/ipv4/udp.c 4 additions, 2 deletionsnet/ipv4/udp.c
- net/ipv6/udp.c 6 additions, 3 deletionsnet/ipv6/udp.c
Loading
Please register or sign in to comment