From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1 1/3] port: add mp/mc ring ports Date: Tue, 22 Sep 2015 16:23:51 +0200 Message-ID: <3616846.ZsjBrqIcvx@xps13> References: <1442322395-23365-1-git-send-email-piotrx.t.azarewicz@intel.com> <20150921153530.0b198652@urahara> <3EB4FA525960D640B5BDFFD6A3D89126478D65D5@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Dumitrescu, Cristian" Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 678E7CF9 for ; Tue, 22 Sep 2015 16:24:57 +0200 (CEST) Received: by wicge5 with SMTP id ge5so164040350wic.0 for ; Tue, 22 Sep 2015 07:24:57 -0700 (PDT) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D89126478D65D5@IRSMSX108.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" 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. > DPDK> grep 'static inline' `find -name '*.[hc]'` | wc -l > 1700