From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Verma, Shally" Subject: Re: [PATCH v3 4/5] compress/zlib: support burst enqueue/dequeue Date: Mon, 23 Jul 2018 17:14:26 +0000 Message-ID: References: <1532197069-24224-1-git-send-email-shally.verma@caviumnetworks.com> <1532197069-24224-5-git-send-email-shally.verma@caviumnetworks.com> <20180723095357.5a85b206@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "pablo.de.lara.guarch@intel.com" , "dev@dpdk.org" , "Athreya, Narayana Prasad" , "Challa, Mahipal" , "Gupta, Ashish" , "Sahu, Sunila" , "Sahu, Sunila" To: Stephen Hemminger Return-path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0072.outbound.protection.outlook.com [104.47.40.72]) by dpdk.org (Postfix) with ESMTP id DD9D1235 for ; Mon, 23 Jul 2018 19:18:21 +0200 (CEST) In-Reply-To: <20180723095357.5a85b206@xeon-e3> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >-----Original Message----- >From: Stephen Hemminger >Sent: 23 July 2018 22:24 >To: Verma, Shally >Cc: pablo.de.lara.guarch@intel.com; dev@dpdk.org; Athreya, Narayana Prasad= ; Challa, >Mahipal ; Gupta, Ashish ; Sahu, Sunila ; >Sahu, Sunila >Subject: Re: [dpdk-dev] [PATCH v3 4/5] compress/zlib: support burst enqueu= e/dequeue > >External Email > >On Sat, 21 Jul 2018 23:47:48 +0530 >Shally Verma wrote: > >> -/** Parse comp xform and set private xform/stream parameters */ >> +/** Compute next mbuf in the list, assign data buffer and length, >> + * returns 0 if mbuf is NULL >> + */ >> +#define COMPUTE_BUF(mbuf, data, len) \ >> + ((mbuf =3D mbuf->next) ? \ >> + (data =3D rte_pktmbuf_mtod(mbuf, uint8_t *)), \ >> + (len =3D rte_pktmbuf_data_len(mbuf)) : 0) >> + > >Could this be an inline not a macro? [Shally] Again what goes in favour of inline here? Just curious to know if = DPDK has any preferred guidelines regarding this? Thanks Shally=20