From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C66B48E59 for ; Fri, 16 Oct 2015 15:16:41 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 16 Oct 2015 06:16:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,689,1437462000"; d="scan'208";a="828510689" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.62]) by fmsmga002.fm.intel.com with SMTP; 16 Oct 2015 06:16:38 -0700 Received: by (sSMTP sendmail emulation); Fri, 16 Oct 2015 14:16:38 +0025 Date: Fri, 16 Oct 2015 14:16:38 +0100 From: Bruce Richardson To: "Ananyev, Konstantin" Message-ID: <20151016131638.GD9980@bricha3-MOBL3> References: <1443729293-20753-1-git-send-email-konstantin.ananyev@intel.com> <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com> <20151014090904.3d632d92@xeon-e3> <2601191342CEEE43887BDE71AB97725836AAFAC3@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB97725836AAFAC3@irsmsx105.ger.corp.intel.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCHv5 1/8] ethdev: add new API to retrieve RX/TX queue information X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2015 13:16:42 -0000 On Wed, Oct 14, 2015 at 06:44:38PM +0000, Ananyev, Konstantin wrote: > > > > -----Original Message----- > > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > > Sent: Wednesday, October 14, 2015 5:09 PM > > To: Ananyev, Konstantin > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCHv5 1/8] ethdev: add new API to retrieve RX/TX queue information > > > > On Thu, 1 Oct 2015 20:54:46 +0100 > > Konstantin Ananyev wrote: > > > > > + if (nb_rx_desc > dev_info.rx_desc_lim.nb_max || > > > + nb_rx_desc < dev_info.rx_desc_lim.nb_min || > > > + nb_rx_desc % dev_info.rx_desc_lim.nb_align != 0) { > > > + > > > > Preferred indentation style is to line up the conditional. > > if (nb_rx_desc > dev_info.rx_desc_lim.nb_max || > > nb_rx_desc < dev_info.rx_desc_lim.nb_min || > > nb_rx_desc % dev_info.rx_desc_lim.nb_align != 0) { > > > As I remember within DPDK we use an extra tab as preferred indentation style for several years. > Why it suddenly changed now? > Konstantin > We actually have a mix of styles, some using double-indent on continuation, and some using aligning as above. I prefer the double indent, as I don't like mixing tabs and spaces for indentation and the resulting line-up of lines for those poor souls using 4-char tabs, but overall, the global rule is to try and copy the existing style in the file being modified. There are already instances of this style of indent in ethdev.c [I checked, which is why I didn't object myself to Stephen's comment :-)] /Bruce