ia64/xen-unstable
changeset 11762:0cda1a7988ee
[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@xensource.com>
there is no need for a mapping area inside the driver for copying
receive path.
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Thu Oct 05 22:14:39 2006 +0100 (2006-10-05) |
parents | be6f5e262d84 |
children | 0fe7624dde63 |
files | linux-2.6-xen-sparse/drivers/xen/netback/netback.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Thu Oct 05 22:11:24 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Thu Oct 05 22:14:39 2006 +0100 1.3 @@ -73,8 +73,6 @@ static struct sk_buff_head rx_queue; 1.4 static unsigned long mmap_vstart; 1.5 #define MMAP_VADDR(_req) (mmap_vstart + ((_req) * PAGE_SIZE)) 1.6 1.7 -static void *rx_mmap_area; 1.8 - 1.9 #define PKT_PROT_LEN 64 1.10 1.11 static struct { 1.12 @@ -1323,12 +1321,6 @@ static void netif_page_release(struct pa 1.13 netif_idx_release(pending_idx); 1.14 } 1.15 1.16 -static void netif_rx_page_release(struct page *page) 1.17 -{ 1.18 - /* Ready for next use. */ 1.19 - set_page_count(page, 1); 1.20 -} 1.21 - 1.22 irqreturn_t netif_be_int(int irq, void *dev_id, struct pt_regs *regs) 1.23 { 1.24 netif_t *netif = dev_id; 1.25 @@ -1459,16 +1451,6 @@ static int __init netback_init(void) 1.26 SetPageForeign(page, netif_page_release); 1.27 } 1.28 1.29 - page = balloon_alloc_empty_page_range(NET_RX_RING_SIZE); 1.30 - BUG_ON(page == NULL); 1.31 - rx_mmap_area = pfn_to_kaddr(page_to_pfn(page)); 1.32 - 1.33 - for (i = 0; i < NET_RX_RING_SIZE; i++) { 1.34 - page = virt_to_page(rx_mmap_area + (i * PAGE_SIZE)); 1.35 - set_page_count(page, 1); 1.36 - SetPageForeign(page, netif_rx_page_release); 1.37 - } 1.38 - 1.39 pending_cons = 0; 1.40 pending_prod = MAX_PENDING_REQS; 1.41 for (i = 0; i < MAX_PENDING_REQS; i++)