aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/linux/vmbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/linux/vmbus.c')
-rw-r--r--src/vlib/linux/vmbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/linux/vmbus.c b/src/vlib/linux/vmbus.c
index c1d8eb9b715..2dba8025326 100644
--- a/src/vlib/linux/vmbus.c
+++ b/src/vlib/linux/vmbus.c
@@ -287,8 +287,6 @@ vlib_vmbus_bind_to_uio (vlib_vmbus_addr_t * addr)
/* tell uio_hv_generic about netvsc device type */
if (uio_new_id_needed)
{
- uio_new_id_needed = 0;
-
vec_reset_length (s);
s = format (s, "%s/%s/new_id%c", sysfs_vmbus_drv_path, uio_drv_name, 0);
error = clib_sysfs_write ((char *) s, "%s", netvsc_uuid);
@@ -296,6 +294,8 @@ vlib_vmbus_bind_to_uio (vlib_vmbus_addr_t * addr)
if (error)
goto done;
+ uio_new_id_needed = 0;
+
}
/* prefer the simplier driver_override model */