diff options
author | Gaetan Rivet <grive@u256.net> | 2021-09-08 11:47:26 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-01-18 15:12:01 +0100 |
commit | 59b8f9f8f474452233fc706910c0d70b07a87b1e (patch) | |
tree | 3aa13d1ca4b0447d973e3cf3c160b4f06b71a639 /lib/dpif-netdev.c | |
parent | 6207205e58354c1d1f0a56e2abc873f9ea96520e (diff) | |
download | openvswitch-59b8f9f8f474452233fc706910c0d70b07a87b1e.tar.gz |
dpif-netdev: Rename flow offload thread.
ovs_strlcpy silently fails to copy the thread name if it is too long.
Rename the flow offload thread to differentiate it from the main thread.
Fixes: 02bb2824e51d ("dpif-netdev: do hw flow offload in a thread")
Signed-off-by: Gaetan Rivet <grive@u256.net>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 31cf117d8..5673407e6 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2742,8 +2742,7 @@ queue_netdev_flow_del(struct dp_netdev_pmd_thread *pmd, if (ovsthread_once_start(&offload_thread_once)) { xpthread_cond_init(&dp_flow_offload.cond, NULL); - ovs_thread_create("dp_netdev_flow_offload", - dp_netdev_flow_offload_main, NULL); + ovs_thread_create("hw_offload", dp_netdev_flow_offload_main, NULL); ovsthread_once_done(&offload_thread_once); } @@ -2831,8 +2830,7 @@ queue_netdev_flow_put(struct dp_netdev_pmd_thread *pmd, if (ovsthread_once_start(&offload_thread_once)) { xpthread_cond_init(&dp_flow_offload.cond, NULL); - ovs_thread_create("dp_netdev_flow_offload", - dp_netdev_flow_offload_main, NULL); + ovs_thread_create("hw_offload", dp_netdev_flow_offload_main, NULL); ovsthread_once_done(&offload_thread_once); } |