Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788AbdHORgy (ORCPT ); Tue, 15 Aug 2017 13:36:54 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:36552 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105AbdHORgx (ORCPT ); Tue, 15 Aug 2017 13:36:53 -0400 Date: Tue, 15 Aug 2017 10:36:51 -0700 (PDT) Message-Id: <20170815.103651.1877616739706523154.davem@davemloft.net> To: rdunlap@infradead.org Cc: ncardwell@google.com, mohamed.a.alrshah@ieee.org, netdev@vger.kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mothman@upm.edu.my, borhan@upm.edu.my, zurinamh@upm.edu.my Subject: Re: [PATCH] Adding-Agile-SD-TCP-module-and-modifying-Kconfig-and-makefile From: David Miller In-Reply-To: <5fac1100-c7d3-85ed-8230-53e6ffb3df0a@infradead.org> References: <20170815130806.25168-1-mohamed.a.alrshah@ieee.org> <5fac1100-c7d3-85ed-8230-53e6ffb3df0a@infradead.org> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) 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, 15 Aug 2017 10:36:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 23 From: Randy Dunlap Date: Tue, 15 Aug 2017 09:41:53 -0700 > On 08/15/2017 06:51 AM, Neal Cardwell wrote: >> On Tue, Aug 15, 2017 at 9:08 AM, mohamedalrshah >> wrote: >> >>> +static void agilesdtcp_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) >>> +{ >>> + struct tcp_sock *tp = tcp_sk(sk); >>> + struct agilesdtcp *ca = inet_csk_ca(sk); >>> + u32 inc_factor; >>> + u32 ca_inc; >>> + u32 current_gap, total_gap; >> >> For coding style, please order local variable declarations from >> longest to shortest line, also know as Reverse Christmas Tree Format. > > Per what coding style, please? This is not in current coding style nor in the > netdev-FAQ exceptions. It is the established practice, documented or not, and I enforce this for all networking code submissions.