]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ark/ark_pktgen.c
net/ice: fix VSI array out of bounds access
[dpdk.git] / drivers / net / ark / ark_pktgen.c
index 28a44f754628c4b6e7d89bc8baf5a9278306fb83..515bfe461cfa949573ba82e819c0da745f4b02bc 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <unistd.h>
+#include <pthread.h>
 
 #include <rte_string_fns.h>
 #include <rte_malloc.h>
@@ -474,6 +475,7 @@ ark_pktgen_delay_start(void *arg)
         * perform a blind sleep here to ensure that the external test
         * application has time to setup the test before we generate packets
         */
+       pthread_detach(pthread_self());
        usleep(100000);
        ark_pktgen_run(inst);
        return NULL;