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
ofproto: Inline trivial functions.
[sliver-openvswitch.git]
/
lib
/
dpif-netdev.c
diff --git
a/lib/dpif-netdev.c
b/lib/dpif-netdev.c
index
15aa42a
..
96c5feb
100644
(file)
--- a/
lib/dpif-netdev.c
+++ b/
lib/dpif-netdev.c
@@
-323,7
+323,6
@@
struct pmd_thread {
pthread_t thread;
int id;
atomic_uint change_seq;
pthread_t thread;
int id;
atomic_uint change_seq;
- char *name;
};
/* Interface to netdev-based datapath. */
};
/* Interface to netdev-based datapath. */
@@
-1877,8
+1876,6
@@
pmd_thread_main(void *f_)
int poll_cnt;
int i;
int poll_cnt;
int i;
- f->name = xasprintf("pmd_%u", ovsthread_id_self());
- set_subprogram_name("%s", f->name);
poll_cnt = 0;
poll_list = NULL;
poll_cnt = 0;
poll_list = NULL;
@@
-1918,7
+1915,6
@@
reload:
}
free(poll_list);
}
free(poll_list);
- free(f->name);
return NULL;
}
return NULL;
}
@@
-1955,7
+1951,7
@@
dp_netdev_set_pmd_threads(struct dp_netdev *dp, int n)
/* Each thread will distribute all devices rx-queues among
* themselves. */
/* Each thread will distribute all devices rx-queues among
* themselves. */
-
xpthread_create(&f->thread, NULL
, pmd_thread_main, f);
+
f->thread = ovs_thread_create("pmd"
, pmd_thread_main, f);
}
}
}
}
@@
-2160,7
+2156,7
@@
dp_execute_cb(void *aux_, struct ofpbuf *packet,
if (hash_act->hash_alg == OVS_HASH_ALG_L4) {
/* Hash need not be symmetric, nor does it need to include
* L2 fields. */
if (hash_act->hash_alg == OVS_HASH_ALG_L4) {
/* Hash need not be symmetric, nor does it need to include
* L2 fields. */
- hash = miniflow_hash_5tuple(aux->key, hash_act->hash_b
ia
s);
+ hash = miniflow_hash_5tuple(aux->key, hash_act->hash_b
asi
s);
if (!hash) {
hash = 1; /* 0 is not valid */
}
if (!hash) {
hash = 1; /* 0 is not valid */
}