]> git.baikalelectronics.ru Git - kernel.git/commit
net: Track socket refcounts in skb_steal_sock()
authorJoe Stringer <joe@wand.net.nz>
Sun, 29 Mar 2020 22:53:39 +0000 (15:53 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 30 Mar 2020 20:45:04 +0000 (13:45 -0700)
commitc458c25e0430eb9108cd5a52a00792b2db3df3c4
tree0ebc9f8445150e0cf11c71c628ba69f7ae50da15
parent7f639bf869c81302d98b31ffd0db7089d6dba68f
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
include/net/inet6_hashtables.h
include/net/inet_hashtables.h
include/net/sock.h
net/ipv4/udp.c
net/ipv6/udp.c