From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCHv5 1/8] ethdev: add new API to retrieve RX/TX queue information Date: Fri, 16 Oct 2015 14:16:38 +0100 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 Cc: "dev@dpdk.org" To: "Ananyev, Konstantin" 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) Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB97725836AAFAC3@irsmsx105.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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