git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-thread: Make caller provide thread name when creating a thread.
[sliver-openvswitch.git]
/
lib
/
netdev-dpdk.c
diff --git
a/lib/netdev-dpdk.c
b/lib/netdev-dpdk.c
index
d9676ed
..
fd991ab
100644
(file)
--- a/
lib/netdev-dpdk.c
+++ b/
lib/netdev-dpdk.c
@@
-133,8
+133,6
@@
static struct list dpdk_list OVS_GUARDED_BY(dpdk_mutex)
static struct list dpdk_mp_list OVS_GUARDED_BY(dpdk_mutex)
= LIST_INITIALIZER(&dpdk_mp_list);
static struct list dpdk_mp_list OVS_GUARDED_BY(dpdk_mutex)
= LIST_INITIALIZER(&dpdk_mp_list);
-static pthread_t watchdog_thread;
-
struct dpdk_mp {
struct rte_mempool *mp;
int mtu;
struct dpdk_mp {
struct rte_mempool *mp;
int mtu;
@@
-1105,7
+1103,7
@@
dpdk_class_init(void)
"[netdev] up|down", 1, 2,
netdev_dpdk_set_admin_state, NULL);
"[netdev] up|down", 1, 2,
netdev_dpdk_set_admin_state, NULL);
-
xpthread_create(&watchdog_thread, NULL
, dpdk_watchdog, NULL);
+
ovs_thread_create("dpdk_watchdog"
, dpdk_watchdog, NULL);
return 0;
}
return 0;
}