net/ark: fix control thread argument
authorEd Czeck <ed.czeck@atomicrules.com>
Tue, 11 May 2021 20:58:54 +0000 (16:58 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 22:44:06 +0000 (00:44 +0200)
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>
drivers/net/ark/ark_ethdev.c

index 2c1ac28..377299b 100644 (file)
@@ -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;