X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-vnet-brg.c;h=829c0694f738ace9a058a5b66236d171f8b66753;hb=d0aa5bd27c22a33f04f47363910f9773fdeab7eb;hp=451b5e443af959e10dd23897f7314ab38da9f95e;hpb=5c2a2684778fa080c41a0f04518721ebe476efb1;p=palacios.git diff --git a/linux_module/palacios-vnet-brg.c b/linux_module/palacios-vnet-brg.c index 451b5e4..829c069 100644 --- a/linux_module/palacios-vnet-brg.c +++ b/linux_module/palacios-vnet-brg.c @@ -32,7 +32,7 @@ #define VNET_SERVER_PORT 9000 -#define VNET_ADAPTIVE_BRIDGE 0 // set this to one to have bridge go to sleep if there nothing to do... +#define VNET_ADAPTIVE_BRIDGE 1 // set this to one to have bridge go to sleep if there nothing to do... #define VNET_NOPROGRESS_LIMIT 1000 // ... after this many iterations #define VNET_YIELD_TIME_USEC 1000 // ... and go to sleep for this long @@ -479,7 +479,7 @@ static int _udp_server(void * arg) { } else { // Likely not making progress, do potentially slow // yield - we won't come back for until VNET_YIELD_TIME_USEC has passed - palacios_yield_cpu_timed(VNET_YIELD_TIME_USEC); + palacios_sleep_cpu(VNET_YIELD_TIME_USEC); } continue; @@ -610,6 +610,8 @@ void vnet_bridge_deinit(void){ vnet_brg_s.status = 0; + palacios_spinlock_deinit(&(vnet_brg_s.lock)); + INFO("VNET LNX Bridge Deinit Finished\n"); }