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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix the veth0/vif0.0 loopback interfaces to properly assert integrity
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 23 May 2005 18:35:08 +0000
Delivery-date: Mon, 23 May 2005 19:01:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix the veth0/vif0.0 loopback interfaces to properly assert integrity, BitKeeper Bot <=