On Wed, 23 Oct 2024 00:42:29 +0530 vanshika.shu...@nxp.com wrote: > + if (mem_rsp->mp_param.result == SOCKET_OK) { > + rte_memcpy(&fslmc_memsegs, > + &mem_rsp->memsegs, > + sizeof(struct fslmc_dmaseg_list)); > + rte_memcpy(&fslmc_memsegs, > + &mem_rsp->memsegs, > + sizeof(struct fslmc_dmaseg_list));
Why are you using rte_memcpy() instead of a structure assignment. Using memcpy loses type safety.