]> git.proxmox.com Git - mirror_qemu.git/commit
colo-compare: use g_timeout_source_new() to process the stale packets
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Fri, 17 Feb 2017 02:53:11 +0000 (10:53 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (11:46 +0800)
commit66d2a2423ef3f2a3b066d7e9e3301e4fd42f51b3
treed235ec7722cc2d51d43394de6eee881d09c02c4e
parent002d394fd492f837083058832edd7ee97a8c3280
colo-compare: use g_timeout_source_new() to process the stale packets

Instead of using qemu timer to process the stale packets,
We re-use the colo compare thread to process these packets
by creating a new timeout coroutine.

Besides, since we process all the same vNIC's net connection/packets
in one thread, it is safe to remove the timer_check_lock.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c