[dpdk-dev] [dpdk-stable] [PATCH v2 3/4] net/octeontx2: fix jumbo frame crash

Thomas Monjalon thomas at monjalon.net
Fri Oct 16 06:04:44 CEST 2020


08/10/2020 20:48, Harman Kalra:
> +	/* Copy four words if lmtext = 0
> +	 *      six words if lmtext = 1
> +	 *      eight words if lmtext =2
> +	 */
> +	memcpy(out, in, (4 + (2 * lmtext)) * sizeof(uint64_t));

It raises an error when compiling for PowerPC:
drivers/common/octeontx2/otx2_io_generic.h:63:2: error:
implicit declaration of function ‘memcpy’

I've fixed it by including string.h.





More information about the dev mailing list