ia64/linux-2.6.18-xen.hg

changeset 524:7f8b544237bf

netfront: Allow netfront in domain 0.

This is useful if your physical network device is in a utility domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:18:58 2008 +0100 (2008-04-15)
parents b9ec29696130
children ae505684a995 f128849f9e78
files drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/drivers/xen/netfront/netfront.c	Tue Apr 15 15:18:26 2008 +0100
     1.2 +++ b/drivers/xen/netfront/netfront.c	Tue Apr 15 15:18:58 2008 +0100
     1.3 @@ -2213,9 +2213,6 @@ static int __init netif_init(void)
     1.4  		MODPARM_rx_flip = 1; /* Default is to flip. */
     1.5  #endif
     1.6  
     1.7 -	if (is_initial_xendomain())
     1.8 -		return 0;
     1.9 -
    1.10  	netif_init_accel();
    1.11  
    1.12  	IPRINTK("Initialising virtual ethernet driver.\n");
    1.13 @@ -2231,9 +2228,6 @@ module_init(netif_init);
    1.14  
    1.15  static void __exit netif_exit(void)
    1.16  {
    1.17 -	if (is_initial_xendomain())
    1.18 -		return;
    1.19 -
    1.20  #ifdef CONFIG_INET
    1.21  	unregister_inetaddr_notifier(&notifier_inetdev);
    1.22  #endif