Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tcp: Don't reinitialise tw->tw_transparent in tcp_time_wait().

tw->tw_transparent is initialised twice in inet_twsk_alloc()
and tcp_time_wait().

Let's remove the latter.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20251118000445.4091280-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kuniyuki Iwashima and committed by
Jakub Kicinski
932478bf 6785aa9d

-1
-1
net/ipv4/tcp_minisocks.c
··· 337 337 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); 338 338 const int rto = (icsk->icsk_rto << 2) - (icsk->icsk_rto >> 1); 339 339 340 - tw->tw_transparent = inet_test_bit(TRANSPARENT, sk); 341 340 tw->tw_mark = sk->sk_mark; 342 341 tw->tw_priority = READ_ONCE(sk->sk_priority); 343 342 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale;