[dpdk-dev] [PATCH v3 4/5] compress/zlib: support burst enqueue/dequeue
Stephen Hemminger
stephen at networkplumber.org
Mon Jul 23 18:53:57 CEST 2018
On Sat, 21 Jul 2018 23:47:48 +0530
Shally Verma <shally.verma at 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?
More information about the dev
mailing list