colo-compare: compare the packet in a specified Connection
commit8ec14402029d783720f4312ed8a925548e1dad61
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Fri, 13 Oct 2017 06:32:07 +0000 (13 14:32 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 13 Nov 2017 07:46:37 +0000 (13 15:46 +0800)
treea5cc8a466fac19e199a54590fb98a64b1687d318
parent8850d4caa7ad3f50adb2dd8d89842c67ae81a4b2
colo-compare: compare the packet in a specified Connection

A package from pri_indev or sec_indev only belongs to a particular
Connection, so we only need to compare the package in the specified
Connection's primary_list and secondary_list, rather than for each
the whole Connection list to compare. This is time-consuming and
unnecessary.

Less checkpoint more efficiency.

Cc: Zhang Chen <zhangckid@gmail.com>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>
Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c