* This is only used for sanity checking with internal generator
*/
if (rte_ctrl_thread_create(&thread, "ark-delay-pg", NULL,
- ark_pktgen_delay_start, ark) != 0) {
+ ark_pktgen_delay_start, ark->pg)) {
ARK_PMD_LOG(ERR, "Could not create pktgen "
"starter thread\n");
return -1;