Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2245716imu; Tue, 6 Nov 2018 11:17:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dVYNF1chgAYGckJOZDnosm4V8nu2qfJQ4nLdwekhYhneF3FvPKXV9gsDM8p1Vjr/N00PB4 X-Received: by 2002:a17:902:7b91:: with SMTP id w17-v6mr12850751pll.289.1541531855884; Tue, 06 Nov 2018 11:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541531855; cv=none; d=google.com; s=arc-20160816; b=JaBRQ33QL3HDbBsE2el+8yI89HpQz4gatQqDo7sbvoH+U79PS5Lki4LZ465rPagMfC q5dK8Vf9zNl976fIffGduPfjvfWWUIxZ4mf9OdbGVO840C0MplwSFrA1VeL8a3AuQDZd RMqgrKJEQAj3KHtSYKkm5GLYUoxT0p+TdggSwzuPjUBTMj6X0dxkYFjASyTryshVii/i qUhLNEqlEI+Xafr9dR0U+kdsar7rCfZQd9Nk7fx4d8me57yeh4ZJd6TkJrr6udPV/0P2 RUKcmm1i8ijJVutw3g1uPcsjMcUpYnIXjFZqDGf1id07V+/19QKeq0bMx1nMtxnWV0lK NOgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=eK0/+y7u2ploTV+ThheFyAFFWz/4X2Aqgalm8oK/2nI=; b=D3Jn1nGmcyB5DKgBKU61v4eyeDsNkvFgo6nisvmVekQuRLzcHcM8aCDhKWMOsOLb2H 7PrvwLbo2MbejASdASr38Z5izuyKB17DUV/MAh44D2c3LCZnUs9YsZ71fHTEktaTFlAo usgrFYab0j8ZjJvUhDSsleK4AMK72uNFAo0Loe19OQFxdEVrgXNJSLbEJa9tWvwlk+7j eb0F5qUGFaaixEB3RgNppZ/MXFX3g87lM5n4uix8CHYkeJmEkpCWDTppMvVKJA11iB+E 3frM60t7eHhHFKIt9XuzW62OUu1k7lk/UWwbSwgYEpWBgnLLk7Yj97Kw5D01Z1zBzRUu Ylrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j34si9970421pgj.557.2018.11.06.11.17.19; Tue, 06 Nov 2018 11:17:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388619AbeKGEl4 (ORCPT + 99 others); Tue, 6 Nov 2018 23:41:56 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:51118 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387928AbeKGEl4 (ORCPT ); Tue, 6 Nov 2018 23:41:56 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 443D21455115A; Tue, 6 Nov 2018 11:15:14 -0800 (PST) Date: Tue, 06 Nov 2018 11:15:13 -0800 (PST) Message-Id: <20181106.111513.858603892736758550.davem@davemloft.net> To: suraj1998@gmail.com Cc: edumazet@google.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: net: ipv4: tcp_westwood: fixed warnings and checks From: David Miller In-Reply-To: <1541425985-31869-1-git-send-email-suraj1998@gmail.com> References: <1541425985-31869-1-git-send-email-suraj1998@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 06 Nov 2018 11:15:14 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.