[ovs-dev] [PATCH] tap: flag as present after opening it.

Eelco Chaudron echaudro at redhat.com
Thu Jun 7 14:34:02 UTC 2018


On 07/06/18 16:10, Flavio Leitner wrote:
> Assume the device is present if it can be opened.
>
> Reported-by: Eelco Chaudron <echaudro at redhat.com>
> Signed-off-by: Flavio Leitner <fbl at redhat.com>
> ---
>   lib/netdev-linux.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
> index d19bd86ac..d2b79e569 100644
> --- a/lib/netdev-linux.c
> +++ b/lib/netdev-linux.c
> @@ -940,6 +940,7 @@ netdev_linux_construct_tap(struct netdev *netdev_)
>           goto error_close;
>       }
>   
> +    netdev->present = true;
>       return 0;
>   
>   error_close:

Acked-by: Eelco Chaudron <echaudro at redhat.com>
Tested-by: Eelco Chaudron <echaudro at redhat.com>



More information about the dev mailing list