Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-02 Thread David Miller
From: Konstantin Khlebnikov Date: Wed, 01 Nov 2017 16:32:15 +0300 > Average RTT could become zero. This happened in real life at least twice. > This patch treats zero as 1us. > > Signed-off-by: Konstantin Khlebnikov Applied and queued up

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-02 Thread David Miller
From: Konstantin Khlebnikov Date: Wed, 01 Nov 2017 16:32:15 +0300 > Average RTT could become zero. This happened in real life at least twice. > This patch treats zero as 1us. > > Signed-off-by: Konstantin Khlebnikov Applied and queued up for -stable, thank you. Indeed, as others have

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Eric Dumazet
On Wed, 2017-11-01 at 16:32 +0300, Konstantin Khlebnikov wrote: > Average RTT could become zero. This happened in real life at least twice. > This patch treats zero as 1us. > > Signed-off-by: Konstantin Khlebnikov > --- > net/ipv4/tcp_nv.c |2 +- > 1 file changed,

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Eric Dumazet
On Wed, 2017-11-01 at 16:32 +0300, Konstantin Khlebnikov wrote: > Average RTT could become zero. This happened in real life at least twice. > This patch treats zero as 1us. > > Signed-off-by: Konstantin Khlebnikov > --- > net/ipv4/tcp_nv.c |2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Stephen Hemminger
On Wed, 1 Nov 2017 13:47:17 + Lawrence Brakmo wrote: > Thank you for finding and fixing this. > > On 11/1/17, 6:32 AM, "Konstantin Khlebnikov" > wrote: > > Average RTT could become zero. This happened in real life at least twice. > This

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Stephen Hemminger
On Wed, 1 Nov 2017 13:47:17 + Lawrence Brakmo wrote: > Thank you for finding and fixing this. > > On 11/1/17, 6:32 AM, "Konstantin Khlebnikov" > wrote: > > Average RTT could become zero. This happened in real life at least twice. > This patch treats zero as 1us. > >

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Lawrence Brakmo
Thank you for finding and fixing this. On 11/1/17, 6:32 AM, "Konstantin Khlebnikov" wrote: Average RTT could become zero. This happened in real life at least twice. This patch treats zero as 1us. Signed-off-by: Konstantin Khlebnikov

Re: [PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Lawrence Brakmo
Thank you for finding and fixing this. On 11/1/17, 6:32 AM, "Konstantin Khlebnikov" wrote: Average RTT could become zero. This happened in real life at least twice. This patch treats zero as 1us. Signed-off-by: Konstantin Khlebnikov khlebni...@yandex-team.ru Acked-by: Lawrence

[PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Konstantin Khlebnikov
Average RTT could become zero. This happened in real life at least twice. This patch treats zero as 1us. Signed-off-by: Konstantin Khlebnikov --- net/ipv4/tcp_nv.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_nv.c

[PATCH] tcp_nv: fix division by zero in tcpnv_acked()

2017-11-01 Thread Konstantin Khlebnikov
Average RTT could become zero. This happened in real life at least twice. This patch treats zero as 1us. Signed-off-by: Konstantin Khlebnikov --- net/ipv4/tcp_nv.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_nv.c b/net/ipv4/tcp_nv.c index