[PATCH v2 05/19] net/xsc: add ioctl command interface

Stephen Hemminger stephen at networkplumber.org
Wed Sep 11 05:48:49 CEST 2024


On Wed, 11 Sep 2024 10:07:26 +0800
"WanRenyong" <wanry at yunsilicon.com> wrote:

> +	hdr = rte_zmalloc(NULL, alloc_len, RTE_CACHE_LINE_SIZE);
> +	if (hdr == NULL) {
> +		PMD_DRV_LOG(ERR, "Failed to allocate xsc ioctl cmd memory");
> +		return -ENOMEM;
> +	}
> +

This is local to function, use malloc() not rte_zmalloc().
It doesn't need to come from hugepages.


More information about the dev mailing list