[PATCH v3] app/testpmd: support ddp dump command for ice

Stephen Hemminger stephen at networkplumber.org
Wed May 18 17:24:32 CEST 2022


On Wed, 18 May 2022 06:58:06 +0000
Steve Yang <stevex.yang at intel.com> wrote:

> +#define ICE_BUFF_SIZE	0x000c9000
Having magic size hard coded in testpmd is bad idea.
If there is driver specific size it should be exposed by API

> +	size = ICE_BUFF_SIZE;
> +	buff = (uint8_t *)malloc(ICE_BUFF_SIZE);

Cast of void * is not necessary in C (only C++)


More information about the dev mailing list