diff options
| author | Dave Airlie <airlied@redhat.com> | 2018-11-29 03:34:03 +0300 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2018-11-29 03:34:03 +0300 | 
| commit | 1ec28f8b8ada4e4f77d1af006a3a474f4f83b8e3 (patch) | |
| tree | 2e810e02a66cdec0bc82a8555796b7083ad03416 /net/ipv4/tcp_output.c | |
| parent | 61647c77cb15354a329cbb36fe7a2253b36b51b1 (diff) | |
| parent | 2e6e902d185027f8e3cb8b7305238f7e35d6a436 (diff) | |
| download | linux-1ec28f8b8ada4e4f77d1af006a3a474f4f83b8e3.tar.xz | |
Merge v4.20-rc4 into drm-next
Requested by Boris Brezillon for some vc4 fixes that are needed for future vc4 work.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 9c34b97d365d..3f510cad0b3e 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -180,10 +180,10 @@ static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts,  {  	struct tcp_sock *tp = tcp_sk(sk); -	if (unlikely(tp->compressed_ack)) { +	if (unlikely(tp->compressed_ack > TCP_FASTRETRANS_THRESH)) {  		NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPACKCOMPRESSED, -			      tp->compressed_ack); -		tp->compressed_ack = 0; +			      tp->compressed_ack - TCP_FASTRETRANS_THRESH); +		tp->compressed_ack = TCP_FASTRETRANS_THRESH;  		if (hrtimer_try_to_cancel(&tp->compressed_ack_timer) == 1)  			__sock_put(sk);  	} | 
