From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] staging: net: ipv4: tcp_westwood: fixed warnings and checks Date: Tue, 06 Nov 2018 11:15:13 -0800 (PST) Message-ID: <20181106.111513.858603892736758550.davem@davemloft.net> References: <1541425985-31869-1-git-send-email-suraj1998@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: edumazet@google.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: suraj1998@gmail.com Return-path: In-Reply-To: <1541425985-31869-1-git-send-email-suraj1998@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Suraj Singh Date: Mon, 5 Nov 2018 19:23:05 +0530 > Fixed warnings and checks for TCP Westwood > > Signed-off-by: Suraj Singh I asked you yesterday why "staging: " appears in your subject line and you have failed to respond and explain. There are also functional issues with your patch: > - tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); > + tp->snd_cwnd = tcp_westwood_bw_rttmin(sk); > + tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); This is bogus, now tcp_westwood_bw_rttmin(sk) will potentially be called two times instead of once. The existing code is fine, please do not modify it.