summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/common.h
diff options
context:
space:
mode:
authorWei Liu2013-05-17 01:26:11 +0200
committerDavid S. Miller2013-05-18 03:23:07 +0200
commitb103f358d9f6f58658f1a6dc08912ab921dd86f1 (patch)
tree5f35cbec030e789a1261676f579cb1b57b236021 /drivers/net/xen-netback/common.h
parentxen-netback: remove dead code (diff)
downloadkernel-qcow2-linux-b103f358d9f6f58658f1a6dc08912ab921dd86f1.tar.gz
kernel-qcow2-linux-b103f358d9f6f58658f1a6dc08912ab921dd86f1.tar.xz
kernel-qcow2-linux-b103f358d9f6f58658f1a6dc08912ab921dd86f1.zip
xen-netback: enable user to unload netback module
This patch enables user to unload netback module, which is useful when user wants to upgrade to a newer netback module without rebooting the host. Netfront cannot handle netback removal event. As we cannot fix all possible frontends we add module get / put along with vif get / put to avoid mis-unloading of netback. To unload netback module, user needs to shutdown all VMs or migrate them to another host or unplug all vifs before hand. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>¬ Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r--drivers/net/xen-netback/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h
index 9d7f1723dd8f..6102a6c59f4e 100644
--- a/drivers/net/xen-netback/common.h
+++ b/drivers/net/xen-netback/common.h
@@ -120,6 +120,7 @@ void xenvif_get(struct xenvif *vif);
void xenvif_put(struct xenvif *vif);
int xenvif_xenbus_init(void);
+void xenvif_xenbus_fini(void);
int xenvif_schedulable(struct xenvif *vif);