X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-vnet-brg.c;h=7eee09c3de6e1ba9c48badb01e219dd84b79f514;hb=601659dc13ae69d249ae60184115f33780575b64;hp=a45ead0b9a7e383db84b00a4a54e3a47e7cd8637;hpb=cd265a5242baa89c2149b5c5cbf0ed00cfa83892;p=palacios.git diff --git a/linux_module/palacios-vnet-brg.c b/linux_module/palacios-vnet-brg.c index a45ead0..7eee09c 100644 --- a/linux_module/palacios-vnet-brg.c +++ b/linux_module/palacios-vnet-brg.c @@ -1,22 +1,7 @@ -/* - * This file is part of the Palacios Virtual Machine Monitor developed - * by the V3VEE Project with funding from the United States National - * Science Foundation and the Department of Energy. - * - * The V3VEE Project is a joint project between Northwestern University - * and the University of New Mexico. You can find out more at - * http://www.v3vee.org - * - * Copyright (c) 2011, Lei Xia - * Copyright (c) 2011, The V3VEE Project - * All rights reserved. - * - * This is free software. You are permitted to use, redistribute, - * and modify it under the terms of the GNU General Public License - * Version 2 (GPLv2). The accompanying COPYING file contains the - * full text of the license. - */ -/* Palacios VNET Host Bridge */ +/* + * Palacios VNET Host Bridge + * (c) Lei Xia 2010 + */ #include #include @@ -133,9 +118,9 @@ void vnet_brg_delete_link(uint32_t idx){ } static void deinit_links_list(void){ - struct vnet_link * link; + struct vnet_link * link, * tmp_link; - list_for_each_entry(link, &(vnet_brg_s.link_list), node) { + list_for_each_entry_safe(link, tmp_link, &(vnet_brg_s.link_list), node) { _delete_link(link); } } @@ -323,7 +308,7 @@ send_to_palacios(unsigned char * buf, vnet_brg_s.stats.pkt_to_vmm ++; - return v3_vnet_send_pkt(&pkt, NULL, 1); + return v3_vnet_send_pkt(&pkt, NULL); } @@ -504,7 +489,7 @@ int vnet_bridge_init(void) { return -1; } - vnet_brg_s.serv_thread = kthread_run(_rx_server, NULL, "vnet-server"); + vnet_brg_s.serv_thread = kthread_run(_rx_server, NULL, "vnet_brgd"); bridge_ops.input = bridge_send_pkt; bridge_ops.poll = NULL;