net/colo-compare.c: Adjust net queue pop order for performance
commit626bba988af8f38b2820f60cfdf5a27bcb74123b
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 5 Sep 2017 06:31:05 +0000 (5 14:31 +0800)
committerJason Wang <jasowang@redhat.com>
Fri, 8 Sep 2017 00:19:30 +0000 (8 08:19 +0800)
tree802b0b6030128107fd9f0b834da81a2f3128fd3a
parent6f5009c38cafad883212810a2219479a8ff408c0
net/colo-compare.c: Adjust net queue pop order for performance

The packet_enqueue() use g_queue_push_tail() to
enqueue net packet, so it is more efficent way use
g_queue_pop_head() to get packet for compare.
That will improve the success rate of comparison.
In my test the performance of ftp put 1000M file
will increase 10%

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c