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

[Xen-devel] [PATCH Netchannel2 2/2] set skb->dev

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH Netchannel2 2/2] set skb->dev
From: "Mitch Williams" <mitch.a.williams@xxxxxxxxx>
Date: Mon, 12 Jan 2009 14:44:56 -0800
Delivery-date: Mon, 12 Jan 2009 14:45:20 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=EeF8acxYUsVD5YeOCZwSyBeVD6c5F1HnrC/4yaI60O4=; b=I4ZsxeWXxTCvxA6wssxfwbNTOIbhSVFGyjD8s+Pk5iVJXbH2iuj6T2ZaxIXiCnvaDS qPHNxxzUfCVZirfR1I4uDUgH7sGmdXp794s0TYg8qdjVP3Lfke2iSYryym99TiOW9ZLr rDWtU1N6dJTSBI2CWuy42kP//0iXxjPkWEbCM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=FGW9/q1srl4atoSKox83ini00wPErdL5JB3JP7mW1QXGzRCq+gJn53scNlq/tAcPop FS/fGm8BIgqXsZLHgM6kG7ODUpnPdzHntkKaLWB+NhVwuaCbPBjKoMLJ7gNoCJxcJ8Zp rOXwYUgkZgRFlWq7WvXJtvtmKqTjPXI4RUJAY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Set skb->dev when we allocate a vmq skb.  Fixes an oops when calling
vmq_free_skb()

Signed-off-by: Mitch Williams <mitch.a.williams@xxxxxxxxx>

diff -r d3803cba4ed9 drivers/xen/netchannel2/vmq.c
--- a/drivers/xen/netchannel2/vmq.c     Wed Jan 07 13:31:06 2009 +0000
+++ b/drivers/xen/netchannel2/vmq.c     Mon Jan 12 14:25:43 2009 -0800
@@ -659,6 +659,7 @@
                skb_shinfo(skb)->frags[i].page_offset = 0;
                skb_shinfo(skb)->frags[i].size = PAGE_SIZE;
                skb_shinfo(skb)->nr_frags++;
+               skb->dev = netdevice;
                cons++;
        }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH Netchannel2 2/2] set skb->dev, Mitch Williams <=