X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost_blk%2Fvhost_blk.c;h=fe2b4e480373ad3646e82d3d09110d3499e42846;hb=c4045f34557a5ce3de2b14e997fe41b122595e29;hp=5c64071604b6d8d13ee7f62f31ee0e60f086b086;hpb=510f43fc5eb936a34ac38fc61fae871d1236a062;p=dpdk.git diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c index 5c64071604..fe2b4e4803 100644 --- a/examples/vhost_blk/vhost_blk.c +++ b/examples/vhost_blk/vhost_blk.c @@ -685,7 +685,8 @@ new_device(int vid) /* start polling vring */ worker_thread_status = WORKER_STATE_START; fprintf(stdout, "New Device %s, Device ID %d\n", path, vid); - if (pthread_create(&tid, NULL, &ctrlr_worker, ctrlr) < 0) { + if (rte_ctrl_thread_create(&tid, "vhostblk-ctrlr", NULL, + &ctrlr_worker, ctrlr) != 0) { fprintf(stderr, "Worker Thread Started Failed\n"); return -1; } @@ -906,5 +907,8 @@ int main(int argc, char *argv[]) while (1) sleep(1); + /* clean up the EAL */ + rte_eal_cleanup(); + return 0; }