From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v3 4/5] compress/zlib: support burst enqueue/dequeue Date: Mon, 23 Jul 2018 09:53:57 -0700 Message-ID: <20180723095357.5a85b206@xeon-e3> References: <1532197069-24224-1-git-send-email-shally.verma@caviumnetworks.com> <1532197069-24224-5-git-send-email-shally.verma@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: pablo.de.lara.guarch@intel.com, dev@dpdk.org, pathreya@caviumnetworks.com, mchalla@caviumnetworks.com, ashish.gupta@caviumnetworks.com, sunila.sahu@caviumnetworks.com, Sunila Sahu To: Shally Verma Return-path: Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id C4D0BF72 for ; Mon, 23 Jul 2018 18:54:00 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id r1-v6so786999pgp.11 for ; Mon, 23 Jul 2018 09:54:00 -0700 (PDT) In-Reply-To: <1532197069-24224-5-git-send-email-shally.verma@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 = mbuf->next) ? \ > + (data = rte_pktmbuf_mtod(mbuf, uint8_t *)), \ > + (len = rte_pktmbuf_data_len(mbuf)) : 0) > + Could this be an inline not a macro?