]> git.proxmox.com Git - ovs.git/commitdiff
tap: flag as present after opening it.
authorFlavio Leitner <fbl@redhat.com>
Thu, 7 Jun 2018 14:10:17 +0000 (11:10 -0300)
committerBen Pfaff <blp@ovn.org>
Thu, 14 Jun 2018 23:50:28 +0000 (16:50 -0700)
Assume the device is present if it can be opened.

Reported-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Tested-by: Eelco Chaudron <echaudro@redhat.com>
lib/netdev-linux.c

index 1d2b7ea4cd00a527cb19ae1f673ca9826cbcebfb..054a9b638cce57d2c3075850b7990ec60e72a073 100644 (file)
@@ -950,6 +950,7 @@ netdev_linux_construct_tap(struct netdev *netdev_)
         goto error_close;
     }
 
+    netdev->present = true;
     return 0;
 
 error_close: