|
From: | Zhang Chen |
Subject: | Re: [Qemu-devel] [PATCH V2 2/3] COLO-compare: Optimize compare_common and compare_tcp |
Date: | Thu, 2 Mar 2017 16:15:44 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 03/02/2017 03:51 PM, Jason Wang wrote:
On 2017年02月28日 14:11, Zhang Chen wrote:OK, How about this? + /* + * Because of ppkt and spkt are both in the same connection, + * The ppkt's src ip, dst ip, src port, dst port, ip_proto all are+ * same with spkt. In addition, IP header's Identification is a random+ * field, we can handle it in IP fragmentation function later. + * So we just compare the ip payload here. we ignored all IP header + * include other field like TOS,TTL,IP Checksum. + */ Thanks Zhang ChenBut this does not explain why we can ignore those fields.
+ /* + * Because of ppkt and spkt are both in the same connection, + * The ppkt's src ip, dst ip, src port, dst port, ip_proto all are + * same with spkt. In addition, IP header's Identification is a random + * field, we can handle it in IP fragmentation function later. + * COLO just concern the response net packet payload from primary guest+ * and secondary guest are same or not, So we ignored all IP header include
+ * other field like TOS,TTL,IP Checksum. we only need to compare + * the ip payload here. + */ How about this fixed comments? Thanks Zhang Chen
Thanks
-- Thanks Zhang Chen
[Prev in Thread] | Current Thread | [Next in Thread] |