RE: [PATCH 2/2] net/colo-compare.c: Optimize removal of secondary packet

2020-11-15 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Sunday, November 15, 2020 7:19 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang > Subject: [PATCH 2/2] net/colo-compare.c: Optimize removal of secondary > packet > > g_queue_remove n

[PATCH 2/2] net/colo-compare.c: Optimize removal of secondary packet

2020-11-15 Thread Lukas Straub
g_queue_remove needs to look up the list entry first, but we already have it as result and can remove it directly with g_queue_delete_link. Signed-off-by: Lukas Straub --- net/colo-compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/colo-compare.c b/net/colo-compare