From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6fRhjXUb6nHQIncBjIgBYCciDBbPtaT0TP+HWLSQyMk=; b=nOvvHy89MKCKG3qwNMEbRIBnnKELHHqe0NMrtoYX2sdjRuxy1D/aAwny+WYijk3k9z aGeAzhvY4HcHDB637FHZfdI8sxBaBfi/wV4QoFU5sXy2J49WLfaKnFe0zYGgSc07MJh+ nWCCI6o+LD/deeRzle9PJjdx0TLz3VPAbh17OMC935q7vw8zn9QApLlg72ZB/TP8YI/y jFsa3rfWSh+nqbYgwnRqXfgIrw6iDNi+7otqBwEgcWp3J6FmqYaendenSr1InkCynfdL m39KwHnJrj7KJtRktiwxh0fWTy6XaMpj7u6p5M3BDX65MLQRT+WMdptE9d3KtcMe1p8S wcmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6fRhjXUb6nHQIncBjIgBYCciDBbPtaT0TP+HWLSQyMk=; b=FK6NsnfbcbbLkZVrJ1K2BxkRPs3ztgw8IaqXQfCgAbR5Tow0BCsIXt1du8AV1lHRw8 lgf0Zv5lWZATzx0BQOITx0vymA1M7r4zcmxAC6C0QJv3A7QdOLGno3esAm66ehJFTp/g hL2loYc7Ts6el9aYh2wUj9+zjc8uu5c5TBbd+OOjvvRC7Kj5MGGsP8+WD13YlXEnIa0i qJ2anrP0khzhfm4sTlOblhZuLqjYf3yd8f39jvLA5YXXLsYLB4ZR9ptpNTO1ZtrkHIVf JTrBE9jgmlFJ+P/djCryGoinSJAi3lk4ZQ8frg3O/i7FWysEhZ0coWxJ++CklPG/qHiP 8+GA== X-Gm-Message-State: AOUpUlGbk4ujOJsSKnj+z1azAmucPt5ekjWPjesuQRNADe5T7+Brg6SA C+XDIMaxfQRKQc/oXhum6dlgdg== X-Google-Smtp-Source: AAOMgpfxH0ZJqHyn6qaJKa0UwvJIJSjVJLL1JrSuMAB8qAVwsLpfpXtBNzx012/ip1m3mS2YnYkHLg== X-Received: by 2002:a63:5055:: with SMTP id q21-v6mr12531120pgl.397.1532364839976; Mon, 23 Jul 2018 09:53:59 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 65-v6sm14780795pfq.81.2018.07.23.09.53.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 09:53:59 -0700 (PDT) Date: Mon, 23 Jul 2018 09:53:57 -0700 From: Stephen Hemminger To: Shally Verma 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 Message-ID: <20180723095357.5a85b206@xeon-e3> In-Reply-To: <1532197069-24224-5-git-send-email-shally.verma@caviumnetworks.com> 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 Subject: Re: [dpdk-dev] [PATCH v3 4/5] compress/zlib: support burst enqueue/dequeue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2018 16:54:01 -0000 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?