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

[Xen-changelog] proto_csum_blank field gets lost if packet is copied in netback driver.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 60f7b567bb2b00d9dcf6ed86847feba4f9462177
# Parent  b61908e30015809a18afb55207f95e232577643a
Simply do not declare module_exit() handlers for netback/blkback, rather
than declaring the modules unsafe.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c |    9 +--------
 linux-2.6-xen-sparse/drivers/xen/netback/netback.c |    8 --------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff -r b61908e30015 -r 60f7b567bb2b 
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Wed May 10 
16:23:22 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Wed May 10 
16:47:00 2006 +0100
@@ -571,18 +571,11 @@ static int __init blkif_init(void)
                list_add_tail(&pending_reqs[i].free_list, &pending_free);
     
        blkif_xenbus_init();
-       __unsafe(THIS_MODULE);
+
        return 0;
 }
 
 module_init(blkif_init);
-
-static void blkif_exit(void)
-{
-       BUG();
-}
-
-module_exit(blkif_exit);
 
 MODULE_LICENSE("Dual BSD/GPL");
 
diff -r b61908e30015 -r 60f7b567bb2b 
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Wed May 10 
16:23:22 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Wed May 10 
16:47:00 2006 +0100
@@ -849,18 +849,10 @@ static int __init netback_init(void)
                &netif_be_dbg);
 #endif
 
-       __unsafe(THIS_MODULE);
-
        return 0;
 }
 
-static void netback_cleanup(void)
-{
-       BUG();
-}
-
 module_init(netback_init);
-module_exit(netback_cleanup);
 
 MODULE_LICENSE("Dual BSD/GPL");
 

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