tcp: clear tp->delivered in tcp_disconnect()
Subsystems (3)
PATCH 1/1 tcp: clear tp->delivered in tcp_disconnect()
tp->delivered needs to be cleared in tcp_disconnect().
tcp_disconnect() is rarely used, but it is worth fixing it.
Fixes ddf1af6fa00e ("tcp: new delivery accounting")
Signed-off-by Eric Dumazet <[email protected]>
Cc Yuchung Cheng <[email protected]>
Cc Neal Cardwell <[email protected]>
--- net/ipv4/tcp.c | 1 + 1 file changed, 1 insertion(+)
net/ipv4/tcp.c +1 -0
@@ -2622,6 +2622,7 @@ int tcp_disconnect(struct sock *sk, int flags) tp->snd_cwnd =TCP_INIT_CWND ; tp->snd_cwnd_cnt =0 ; tp->window_clamp =0 ; + tp->delivered =0 ; tp->delivered_ce =0 ;tcp_set_ca_state (sk, TCP_CA_Open); tp->is_sack_reneg =0 ;
Signature · 1 line
2.25.0.341.g760bfbb309-goog
Quoted 8 lines · Eric Dumazet
tp->deliveredneeds to be cleared intcp_disconnect().
tcp_disconnect()is rarely used, but it is worth fixing it.Fixes ddf1af6fa00e ("tcp: new delivery accounting")Signed-off-by Eric Dumazet <[email protected]>Cc Yuchung Cheng <[email protected]>
Acked-by Yuchung Cheng <[email protected]>
thanks Eric
Quoted 20 lines
Cc Neal Cardwell <[email protected]>--- net/ipv4/tcp.c | 1 + 1 file changed, 1 insertion(+)net/ipv4/tcp.c +1
-1@@ -2622,6 +2622,7 @@ int tcp_disconnect(struct sock *sk, int flags) tp->snd_cwnd =TCP_INIT_CWND ; tp->snd_cwnd_cnt =0 ; tp->window_clamp =0 ; + tp->delivered =0 ; tp->delivered_ce =0 ;tcp_set_ca_state (sk, TCP_CA_Open); tp->is_sack_reneg =0 ; --2.25.0.341.g760bfbb309-goog
Quoted 18 lines · Eric Dumazet
tp->deliveredneeds to be cleared intcp_disconnect().
tcp_disconnect()is rarely used, but it is worth fixing it.Fixes ddf1af6fa00e ("tcp: new delivery accounting")Signed-off-by Eric Dumazet <[email protected]>Cc Yuchung Cheng <[email protected]>Cc Neal Cardwell <[email protected]>--- net/ipv4/tcp.c | 1 + 1 file changed, 1 insertion(+)net/ipv4/tcp.c +0
-0
net/ipv4/tcp.c int tcp_disconnect(struct sock *sk, int flags)
Quoted 8 lines
net/ipv4/tcp.c +1
-1@@ -2622,6 +2622,7 @@ int tcp_disconnect(struct sock *sk, int flags) tp->snd_cwnd =TCP_INIT_CWND ; tp->snd_cwnd_cnt =0 ; tp->window_clamp =0 ; + tp->delivered =0 ; tp->delivered_ce =0 ;tcp_set_ca_state (sk, TCP_CA_Open); tp->is_sack_reneg =0 ; --
Thanks, Eric!
Acked-by Neal Cardwell <[email protected]>
neal
Soheil Hassas Yeganeh
Acked-byQuoted 31 lines · Neal Cardwell
Quoted 18 lines · Eric Dumazet
tp->deliveredneeds to be cleared intcp_disconnect().
tcp_disconnect()is rarely used, but it is worth fixing it.Fixes ddf1af6fa00e ("tcp: new delivery accounting")Signed-off-by Eric Dumazet <[email protected]>Cc Yuchung Cheng <[email protected]>Cc Neal Cardwell <[email protected]>--- net/ipv4/tcp.c | 1 + 1 file changed, 1 insertion(+)net/ipv4/tcp.c +0
-0net/ipv4/tcp.c int tcp_disconnect(struct sock *sk, int flags)
Quoted 8 lines
net/ipv4/tcp.c +1
-1@@ -2622,6 +2622,7 @@ int tcp_disconnect(struct sock *sk, int flags) tp->snd_cwnd =TCP_INIT_CWND ; tp->snd_cwnd_cnt =0 ; tp->window_clamp =0 ; + tp->delivered =0 ; tp->delivered_ce =0 ;tcp_set_ca_state (sk, TCP_CA_Open); tp->is_sack_reneg =0 ; --Thanks, Eric!
Quoted 3 lines
Acked-by Neal Cardwell <[email protected]>neal
Nice catch! Thanks!