aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorMarek Marczykowski <marmarek@invisiblethingslab.com>2012-05-19 21:45:10 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-22 16:50:28 -0400
commit76648102cfabc586ce1e9d0c4ebba2000e7b1ca0 (patch)
tree97ee7b8698d891dfa2361a4e3eb0478b9dc6c853 /drivers/net/xen-netfront.c
parentc3719a1ef52eb1aadf77b7557cc9ca08124d8818 (diff)
xen: do not disable netfront in dom0
Netfront driver can be also useful in dom0, eg when all NICs are assigned to some domU (aka driver domain). Then using netback in domU and netfront in dom0 is the only way to get network access in dom0. Signed-off-by: Marek Marczykowski <marmarek@invisiblethingslab.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 0ebbb1906c30..2027afe405fe 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1962,9 +1962,6 @@ static int __init netif_init(void)
1962 if (!xen_domain()) 1962 if (!xen_domain())
1963 return -ENODEV; 1963 return -ENODEV;
1964 1964
1965 if (xen_initial_domain())
1966 return 0;
1967
1968 if (xen_hvm_domain() && !xen_platform_pci_unplug) 1965 if (xen_hvm_domain() && !xen_platform_pci_unplug)
1969 return -ENODEV; 1966 return -ENODEV;
1970 1967
@@ -1977,9 +1974,6 @@ module_init(netif_init);
1977 1974
1978static void __exit netif_exit(void) 1975static void __exit netif_exit(void)
1979{ 1976{
1980 if (xen_initial_domain())
1981 return;
1982
1983 xenbus_unregister_driver(&netfront_driver); 1977 xenbus_unregister_driver(&netfront_driver);
1984} 1978}
1985module_exit(netif_exit); 1979module_exit(netif_exit);