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

Re: [Xen-devel] Freeing skbs (again)

To: Jacob Gorm Hansen <jacob@xxxxxxxx>
Subject: Re: [Xen-devel] Freeing skbs (again)
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 27 Apr 2004 17:47:10 +0100
Cc: Xen list <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 27 Apr 2004 17:51:15 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Tue, 27 Apr 2004 18:40:40 +0200." <1083084040.25203.230.camel@jacobg>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> I guess I know why now. The skb->head ptrs all point to pages that are
> no longer mapped, this is why accessing data pointed to by skb_shinfo()
> (which the dealloc routine does) is bad. I could manually
> kfree(skb->head); but this still leaves empty mappings in the virtual
> memory map :-(
> 
> I guess I need to flush the rings instead, but I suppose that means
> xen-queued outgoing packets will be dropped? Maybe I will just have to
> live with that.

NETOP_FLUSH_BUFFERS causes Xen to flush all the buffers it can. This
is every transmit buffer and every receive buffer /except/ for
trasnmit buffers that have been queued at the physical NIC. For these
the guest OS must spin/block until responses have been received some
(short) time later.

If you want all pending tx packets be to be sent then you should spin
on the tx_cons and _prod indexes /before/ calling NETOP_FLUSH_BUFFERS.

 -- Keir



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>