From: Ed Czeck Date: Tue, 11 May 2021 20:58:54 +0000 (-0400) Subject: net/ark: fix control thread argument X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4b42104c47930af835ff4781b97aec739900bdaf;p=dpdk.git net/ark: fix control thread argument 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 Acked-by: Ferruh Yigit --- diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index 2c1ac28056..377299b14c 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -569,7 +569,7 @@ eth_ark_dev_start(struct rte_eth_dev *dev) * 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;