Thread argument changed to wrong value during thread name addition,
fixing that bug.
Fixes:
fdefe038eb9b ("net/ark: set generator delay thread name")
Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
* 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;