>-----Original Message-----
>From: Stephen Hemminger <step...@networkplumber.org>
>Sent: 23 July 2018 22:24
>To: Verma, Shally <shally.ve...@cavium.com>
>Cc: pablo.de.lara.gua...@intel.com; dev@dpdk.org; Athreya, Narayana Prasad 
><narayanaprasad.athr...@cavium.com>; Challa,
>Mahipal <mahipal.cha...@cavium.com>; Gupta, Ashish <ashish.gu...@cavium.com>; 
>Sahu, Sunila <sunila.s...@cavium.com>;
>Sahu, Sunila <sunila.s...@cavium.com>
>Subject: Re: [dpdk-dev] [PATCH v3 4/5] compress/zlib: support burst 
>enqueue/dequeue
>
>External Email
>
>On Sat, 21 Jul 2018 23:47:48 +0530
>Shally Verma <shally.ve...@caviumnetworks.com> 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?
[Shally] Again what goes in favour of inline here? Just curious to know if DPDK 
has any preferred guidelines regarding this?

Thanks
Shally 

Reply via email to