On Fri, 8 Sep 2017 15:15:50 +0100
Andrew Rybchenko <arybche...@solarflare.com> wrote:

> +                     txd->mbuf = NULL;
> +                     if (m == NULL)
> +                             continue;
> +
> +                     if ((nb == RTE_DIM(bulk)) ||
> +                         ((nb != 0) && (m->pool != bulk[0]->pool))) {
> +                             rte_mempool_put_bulk(bulk[0]->pool,
> +                                                  (void *)bulk, nb);
> +                             nb = 0;
>                       }
> +

Why not add rte_mbuf_free_bulk (inline) to base code, rather than recoding
everywhere?

Reply via email to