[PATCH 3/5] app/proc-info: fix never show RSS info

Stephen Hemminger stephen at networkplumber.org
Fri Jun 2 23:19:52 CEST 2023


On Wed, 15 Mar 2023 19:00:31 +0800
Dongdong Liu <liudongdong3 at huawei.com> wrote:

> +		rss_key = rte_malloc(NULL,
> +			dev_info.hash_key_size * sizeof(uint8_t), 0);
> +		if (rss_key == NULL)
> +			return;

Don't use rte_malloc() unless this is a structure that needs to be
shared between primary/secondary. In this case it doesn't need to be shared;
so just use calloc().


More information about the dev mailing list