[PATCH] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs

Stephen Hemminger stephen at networkplumber.org
Fri Jan 26 01:29:18 CET 2024


On Wed, 24 Jan 2024 18:42:42 -0800
longli at linuxonhyperv.com wrote:

> +	struct rte_mbuf **mbufs;
> +
> +	mbufs = rte_calloc("mana_rx_mbufs", count, sizeof(struct rte_mbuf *), 0);
> +	if (!mbufs)
> +		return -ENOMEM;

Looks good, you might want to make this numa aware in some future version.

Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list