aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2019-12-10 02:41:48 +0000
committerDavid S. Miller <[email protected]>2019-12-11 01:33:29 +0000
commit5000b28b0b1a34144b39376318cafb8c2a0f79fd (patch)
tree14e856db8fae0c72c1596865afb0c55db34dfa20 /tools/bpf/bpftool/prog.c
parentenetc: add software timestamping (diff)
downloadkernel-5000b28b0b1a34144b39376318cafb8c2a0f79fd.tar.gz
kernel-5000b28b0b1a34144b39376318cafb8c2a0f79fd.zip
tcp: Cleanup duplicate initialization of sk->sk_state.
When a TCP socket is created, sk->sk_state is initialized twice as TCP_CLOSE in sock_init_data() and tcp_init_sock(). The tcp_init_sock() is always called after the sock_init_data(), so it is not necessary to update sk->sk_state in the tcp_init_sock(). Before v2.1.8, the code of the two functions was in the inet_create(). In the patch of v2.1.8, the tcp_v4/v6_init_sock() were added and the code of initialization of sk->state was duplicated. Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions