ia64/xen-unstable
changeset 5095:e81b60a0e170
bitkeeper revision 1.1516 (4292225caWyLsfo-mZ3yV4QmUhXSAQ)
Fix the veth0/vif0.0 loopback interfaces to properly assert integrity
of locally-generated packets. Hopefully this will fix dom0->domU
communications. As an aside, I think 'proto_csum_valid' is not a good
name for that field -- I may rename to 'proto_data_valid' or something
like that.
Signed-off-by: Keir Fraser <keir@xensource.com>
Fix the veth0/vif0.0 loopback interfaces to properly assert integrity
of locally-generated packets. Hopefully this will fix dom0->domU
communications. As an aside, I think 'proto_csum_valid' is not a good
name for that field -- I may rename to 'proto_data_valid' or something
like that.
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Mon May 23 18:35:08 2005 +0000 (2005-05-23) |
parents | 53d5ba4a4aed |
children | a33909b1daaf |
files | linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c |
line diff
1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c Mon May 23 18:17:51 2005 +0000 1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c Mon May 23 18:35:08 2005 +0000 1.3 @@ -68,7 +68,13 @@ static int loopback_start_xmit(struct sk 1.4 np->stats.rx_packets++; 1.5 1.6 if ( skb->ip_summed == CHECKSUM_HW ) 1.7 + { 1.8 + /* Defer checksum calculation. */ 1.9 skb->proto_csum_blank = 1; 1.10 + /* Must be a local packet: assert its integrity. */ 1.11 + skb->proto_csum_valid = 1; 1.12 + } 1.13 + 1.14 skb->ip_summed = skb->proto_csum_valid ? 1.15 CHECKSUM_UNNECESSARY : CHECKSUM_NONE; 1.16