WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Network Checksum Removal

To: Jon Mason <jdmason@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Network Checksum Removal
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 21 May 2005 15:53:20 +0100
Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 21 May 2005 14:55:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050520233015.GA26305@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050520233015.GA26305@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 21 May 2005, at 00:30, Jon Mason wrote:


Traffic generated externally, if rx hardware checksum is available and
enabled, then dom0 will notify domU that it is unnecessary to validate
this checksum (providing the checksum is valid) by enabling the csum
bit.  If domU is not notified that it is unnecessary to vaildate the
checksum, then domU will do it.

Unfortunately you can't trust the ip_summed flag because, as you point out yourself, the bridge and IP forwarding paths both clobber it to CHECKSUM_NONE. This puts us in a pickle: without hacking in some more info we have no way to know whether the physical interface (eth0, say) summed the packet or not. And, if it did, whether it was a CHECKSUM_UNNECESSARY or a CHECKSUM_HW kind of summing (they differ in how you interpret the result).

Your patch as its stands is only correct if eth0 sets ip_summed==CHECKSUM_UNNECESSARY on received packets.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel