aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>2017-10-13 14:32:08 +0800
committerJason Wang <jasowang@redhat.com>2017-11-13 15:46:37 +0800
commit3463218c6cb6326f3b428935209aa0828d69ee42 (patch)
tree73096089f20e58bd9b9d2e8b8011ce97fb9c2635 /net
parent8ec14402029d783720f4312ed8a925548e1dad61 (diff)
colo-compare: Fix comments
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: Zhang Chen <zhangckid@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/colo-compare.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c
index 5d2429b37f..ccdcba2691 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -480,7 +480,9 @@ static void colo_old_packet_check(void *opaque)
/*
* Called from the compare thread on the primary
- * for compare connection
+ * for compare packet with secondary list of the
+ * specified connection when a new packet was
+ * queued to it.
*/
static void colo_compare_connection(void *opaque, void *user_data)
{
@@ -738,7 +740,7 @@ static void compare_pri_rs_finalize(SocketReadState *pri_rs)
pri_rs->packet_len,
pri_rs->vnet_hdr_len);
} else {
- /* compare connection */
+ /* compare packet in the specified connection */
colo_compare_connection(conn, s);
}
}
@@ -751,7 +753,7 @@ static void compare_sec_rs_finalize(SocketReadState *sec_rs)
if (packet_enqueue(s, SECONDARY_IN, &conn)) {
trace_colo_compare_main("secondary: unsupported packet in");
} else {
- /* compare connection */
+ /* compare packet in the specified connection */
colo_compare_connection(conn, s);
}
}