colo-compare: introduce packet comparison thread
commit0682e15b19b2f41c0568142b42518b9471168597
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 27 Sep 2016 02:22:30 +0000 (27 10:22 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2016 09:54:22 +0000 (27 17:54 +0800)
treeb3777775b2a4d24bf338317bcd5c39231a004245
parentb6540d403d28d9ecbbf0ab76b82fb0fa92dc75ce
colo-compare: introduce packet comparison thread

If primary packet is same with secondary packet,
we will send primary packet and drop secondary
packet, otherwise notify COLO frame to do checkpoint.
If primary packet comes but secondary packet does not,
after REGULAR_PACKET_CHECK_MS milliseconds we set
the primary packet as old_packet,then do a checkpoint.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c
net/colo.c
net/colo.h
trace-events