[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 5da82db00c6e6dfa8dd33809c8fab94376635ad3
# Parent  5976f3828e1865da95f7931637466ae353824b3e
Simply do not declare module_exit() handlers for netback/blkback, rather
than declaring the modules unsafe.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   9970:60f7b567bb2b00d9dcf6ed86847feba4f9462177
xen-unstable date:        Wed May 10 16:47:00 2006 +0100
---
 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 5976f3828e18 -r 5da82db00c6e 
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:26:27 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Wed May 10 
16:48:12 2006 +0100
@@ -570,18 +570,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 5976f3828e18 -r 5da82db00c6e 
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:26:27 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Wed May 10 
16:48:12 2006 +0100
@@ -843,18 +843,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®.