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

[Xen-changelog] [xen-unstable] [NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 0cda1a7988ee05359b68d09002bdd900f53a78a2
# Parent  be6f5e262d844326113c47fdc6641c382f28577d
[NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so
there is no need for a mapping area inside the driver for copying
receive path.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/netback/netback.c |   18 ------------------
 1 files changed, 18 deletions(-)

diff -r be6f5e262d84 -r 0cda1a7988ee 
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Thu Oct 05 
22:11:24 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Thu Oct 05 
22:14:39 2006 +0100
@@ -73,8 +73,6 @@ static unsigned long mmap_vstart;
 static unsigned long mmap_vstart;
 #define MMAP_VADDR(_req) (mmap_vstart + ((_req) * PAGE_SIZE))
 
-static void *rx_mmap_area;
-
 #define PKT_PROT_LEN 64
 
 static struct {
@@ -1323,12 +1321,6 @@ static void netif_page_release(struct pa
        netif_idx_release(pending_idx);
 }
 
-static void netif_rx_page_release(struct page *page)
-{
-       /* Ready for next use. */
-       set_page_count(page, 1);
-}
-
 irqreturn_t netif_be_int(int irq, void *dev_id, struct pt_regs *regs)
 {
        netif_t *netif = dev_id;
@@ -1459,16 +1451,6 @@ static int __init netback_init(void)
                SetPageForeign(page, netif_page_release);
        }
 
-       page = balloon_alloc_empty_page_range(NET_RX_RING_SIZE);
-       BUG_ON(page == NULL);
-       rx_mmap_area = pfn_to_kaddr(page_to_pfn(page));
-
-       for (i = 0; i < NET_RX_RING_SIZE; i++) {
-               page = virt_to_page(rx_mmap_area + (i * PAGE_SIZE));
-               set_page_count(page, 1);
-               SetPageForeign(page, netif_rx_page_release);
-       }
-
        pending_cons = 0;
        pending_prod = MAX_PENDING_REQS;
        for (i = 0; i < MAX_PENDING_REQS; i++)

_______________________________________________
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®.