]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: enable user to unload netback module
authorWei Liu <wei.liu2@citrix.com>
Thu, 16 May 2013 23:26:11 +0000 (23:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 May 2013 01:23:07 +0000 (18:23 -0700)
commitfcc645d3df7105b6d0ea03db45eb0e524fd43bca
tree5f35cbec030e789a1261676f579cb1b57b236021
parenta3df0ee0301b810a22f331638c958c69f11adfe0
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>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c
drivers/net/xen-netback/xenbus.c