[dpdk-dev] [PATCH v2 2/7] vhost: refactor virtio_dev_rx
Xie, Huawei
huawei.xie at intel.com
Mon Mar 7 04:34:53 CET 2016
On 2/18/2016 9:48 PM, Yuanhan Liu wrote:
> + while (1) {
> + /* done with current mbuf, fetch next */
> + if (mbuf_avail == 0) {
> + m = m->next;
> + if (m == NULL)
> + break;
> +
> + mbuf_offset = 0;
> + mbuf_avail = rte_pktmbuf_data_len(m);
> + }
> +
You could use while (mbuf_avail || m->next) to align with the style of
coyp_desc_to_mbuf?
More information about the dev
mailing list