direct-io.hg

changeset 1443:180c1407b64f

bitkeeper revision 1.943 (40c6c10f90gVdztSEe31gGHbItwLwg)

interface.c:
Net backend rename
author kaf24@scramble.cl.cam.ac.uk
date Wed Jun 09 07:49:35 2004 +0000 (2004-06-09)
parents 089bd7abf02e
children e66d4ccb01af
files xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/interface.c
line diff
     1.1 --- a/xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/interface.c	Wed Jun 09 07:42:39 2004 +0000
     1.2 +++ b/xenolinux-2.4.26-sparse/arch/xen/drivers/netif/backend/interface.c	Wed Jun 09 07:49:35 2004 +0000
     1.3 @@ -75,8 +75,10 @@ void netif_create(netif_be_create_t *cre
     1.4      unsigned int       handle = create->netif_handle;
     1.5      struct net_device *dev;
     1.6      netif_t          **pnetif, *netif;
     1.7 +    char               name[IFNAMSIZ];
     1.8  
     1.9 -    dev = alloc_netdev(sizeof(netif_t), "nbe-if%d", ether_setup);
    1.10 +    snprintf(name, IFNAMSIZ, "vif%u.%u", domid, handle);
    1.11 +    dev = alloc_netdev(sizeof(netif_t), name, ether_setup);
    1.12      if ( dev == NULL )
    1.13      {
    1.14          DPRINTK("Could not create netif: out of memory\n");