net/colo-compare.c: Optimize compare order for performance
commita5f038e2c5e262ded63869a9e4bdf4951821e480
authorZhang Chen <chen.zhang@intel.com>
Fri, 14 Jan 2022 05:09:00 +0000 (14 13:09 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 14 Feb 2022 03:50:44 +0000 (14 11:50 +0800)
tree93f831f789b483f41937d37de8f637bd3626ff48
parente29919c93d19118610d64de9deb9c223024c0bc6
net/colo-compare.c: Optimize compare order for performance

COLO-compare use the glib function g_queue_find_custom to dump
another VM's networking packet to compare. But this function always
start find from the queue->head(here is the newest packet), It will
reduce the success rate of comparison. So this patch reversed
the order of the queues for performance.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reported-by: leirao <lei.rao@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c