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] Freeing skbs (again)

To: Xen list <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Freeing skbs (again)
From: Jacob Gorm Hansen <jacob@xxxxxxxx>
Date: Tue, 27 Apr 2004 16:54:29 +0200
Delivery-date: Tue, 27 Apr 2004 15:56:58 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
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
My situation is this:

- interrupts are off
- one xenolinux network device is active
- there are buffered rx requests in the rx_ring
- I need to reset this ring in a minute
- I wish to free all the out-of-band pages allocated in my guest OS, so
they are not leaked when I reset the ring


I am trying this:

NET_RING_IDX i = np->net_idx->rx_resp_prod;

while (i != np->net_idx->rx_req_prod)
{
    unsigned short id =
np->net_ring->rx_ring[MASK_NET_RX_IDX(i++)].req.id;

    struct sk_buff* skb = np->rx_skbs[id];
    dev_kfree_skb_any(skb);
}


-- which crashes on dev_kfree_skb_any().


Can anyone tell my why I cannot free these skbs?

Thanks,
Jacob



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