X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_vnet.c;h=0ce9cd6f1ff2f8f8be0d447d248a4954f87f5cb8;hb=3b85ebc98b3f850992ffbfa1cb6e8d6ad777515b;hp=14322c1d6f33cc91417cdb37bc82671bef0ad7a3;hpb=206253acc307d5f40b538d88a282b00b3984097c;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_vnet.c b/palacios/src/devices/lnx_virtio_vnet.c index 14322c1..0ce9cd6 100644 --- a/palacios/src/devices/lnx_virtio_vnet.c +++ b/palacios/src/devices/lnx_virtio_vnet.c @@ -26,7 +26,7 @@ #include -#ifndef CONFIG_DEBUG_VNET_BRG +#ifndef CONFIG_LINUX_VIRTIO_VNET_DEBUG #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -600,7 +600,7 @@ static struct v3_device_ops dev_ops = { }; -static int vnet_brg_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { +static int dev_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { struct vm_device * pci_bus = v3_find_dev(vm, v3_cfg_val(cfg, "bus")); struct virtio_vnet_state * vbrg_state = NULL; struct pci_device * pci_dev = NULL; @@ -711,4 +711,4 @@ static int vnet_brg_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { } -device_register("LNX_VNET_BRG", vnet_brg_init) +device_register("LNX_VIRTIO_VNET", dev_init)