[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Since we don't reset the proto_csum_blank flag in the skb, the
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 40b124e270ee0f7d4c9c2546655cd20399b36d57 # Parent 7b9dacaf3340931a7724964553901b15941ce0bb Since we don't reset the proto_csum_blank flag in the skb, the checksum calculation gets done twice, which is not twice as good as once. With this patch, TCP/UDP checksum errors from dom0 are fixed, and domUs can use TCP/UDP without turning off TX checksum offload. Normal non-VLAN bridged configs still work fine, tested with xm-test. Signed-off-by: Jim Dykman <dykman@xxxxxxxxxx> diff -r 7b9dacaf3340 -r 40b124e270ee linux-2.6-xen-sparse/net/core/dev.c --- a/linux-2.6-xen-sparse/net/core/dev.c Fri Apr 14 13:21:12 2006 +++ b/linux-2.6-xen-sparse/net/core/dev.c Fri Apr 14 13:23:40 2006 @@ -1294,6 +1294,7 @@ if ((skb->h.raw + skb->csum + 2) > skb->tail) goto out_kfree_skb; skb->ip_summed = CHECKSUM_HW; + skb->proto_csum_blank = 0; } #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |