[dpdk-dev] [PATCH 1/2] net/sfc: free mbufs in bulks on EF10 native Tx datapath reap

Stephen Hemminger stephen at networkplumber.org
Tue Sep 12 23:51:57 CEST 2017


On Fri, 8 Sep 2017 15:15:50 +0100
Andrew Rybchenko <arybchenko at 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?


More information about the dev mailing list