[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 dfc89d085f6fcb7699a48f12ce553e458af16e43 # Parent 86af7d0a244d7e0c2101f286075ae078b47d67ca 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 86af7d0a244d -r dfc89d085f6f linux-2.6-xen-sparse/net/core/dev.c --- a/linux-2.6-xen-sparse/net/core/dev.c Fri Apr 14 13:19:05 2006 +++ b/linux-2.6-xen-sparse/net/core/dev.c Fri Apr 14 13:24:38 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 |