[PATCH v1 12/18] net/r8169: implement Tx path

Stephen Hemminger stephen at networkplumber.org
Tue Oct 15 17:32:21 CEST 2024


On Tue, 15 Oct 2024 11:09:22 +0800
Howard Wang <howard_wang at realsil.com.cn> wrote:

> +	/* Allocate memory for the software ring */
> +	txq->sw_ring = rte_zmalloc_socket("r8169 sw tx ring",
> +	                                  nb_tx_desc * sizeof(struct rtl_tx_entry),
> +	                                  RTE_CACHE_LINE_SIZE, socket_id);
> +

Prefer use of rte_calloc when allocating array


More information about the dev mailing list