From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v1 1/3] port: add mp/mc ring ports Date: Tue, 22 Sep 2015 09:34:34 -0700 Message-ID: <20150922093434.4f98e10b@urahara> References: <1442322395-23365-1-git-send-email-piotrx.t.azarewicz@intel.com> <20150921153530.0b198652@urahara> <3EB4FA525960D640B5BDFFD6A3D89126478D65D5@IRSMSX108.ger.corp.intel.com> <3616846.ZsjBrqIcvx@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id C281E8DB0 for ; Tue, 22 Sep 2015 18:34:24 +0200 (CEST) Received: by padhy16 with SMTP id hy16so13729421pad.1 for ; Tue, 22 Sep 2015 09:34:23 -0700 (PDT) In-Reply-To: <3616846.ZsjBrqIcvx@xps13> 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 Tue, 22 Sep 2015 16:23:51 +0200 Thomas Monjalon wrote: > 2015-09-22 11:34, Dumitrescu, Cristian: > > > > > -----Original Message----- > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen > > > Hemminger > > > Sent: Tuesday, September 22, 2015 1:36 AM > > > To: Azarewicz, PiotrX T > > > Cc: dev@dpdk.org > > > Subject: Re: [dpdk-dev] [PATCH v1 1/3] port: add mp/mc ring ports > > > > > > On Tue, 15 Sep 2015 15:06:33 +0200 > > > Piotr Azarewicz wrote: > > > > > > > +static inline void > > > > +send_burst_mp(struct rte_port_ring_writer *p) > > > > +{ > > > > > > compiler will inline static functions anyway. No need to add inline qualifier > > > > Hi Stephen, > > > > Using 'static inline' seems to be the standard practice in DPDK and a good practice as well. > > Why do you think it is a good practice? > Forced inlining can be a random optimization having negative effects. Agreed. Modern compilers make good decisions.