[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix the veth0/vif0.0 loopback interfaces to properly assert integrity



ChangeSet 1.1516, 2005/05/23 19:35:08+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        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@xxxxxxxxxxxxx>



 loopback.c |    6 ++++++
 1 files changed, 6 insertions(+)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c 
b/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c    2005-05-23 
15:02:06 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c    2005-05-23 
15:02:06 -04:00
@@ -68,7 +68,13 @@
     np->stats.rx_packets++;
 
     if ( skb->ip_summed == CHECKSUM_HW )
+    {
+        /* Defer checksum calculation. */
         skb->proto_csum_blank = 1;
+        /* Must be a local packet: assert its integrity. */
+        skb->proto_csum_valid = 1;
+    }
+
     skb->ip_summed = skb->proto_csum_valid ?
         CHECKSUM_UNNECESSARY : CHECKSUM_NONE;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.