[ovs-dev] [PATCH] windows: Broken internal netdevs

Guru Shetty guru at ovn.org
Wed Feb 22 16:19:10 UTC 2017


On 17 February 2017 at 03:10, Alin Serdean <aserdean at cloudbasesolutions.com>
wrote:

> Commit fa07525f9cf3fa698ebc23ea09da477d3d881a87 fixed error logging for
> for regular netdevs, however it overlooked "internal" netdevs.
>
> This patch allows "internal" netdev objects to be created and passed to
> dpif_port_add().
>
> Reported-by: Nithin Raju <nithin at vmware.com>
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
> ---
> Intended for branch-2.5,branch-2.6,branch-2.7,master
>
Thanks, applied to all the above branches.

> ---
>  lib/netdev-windows.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/lib/netdev-windows.c b/lib/netdev-windows.c
> index b22bd09..375cb32 100644
> --- a/lib/netdev-windows.c
> +++ b/lib/netdev-windows.c
> @@ -159,7 +159,10 @@ netdev_windows_system_construct(struct netdev
> *netdev_)
>
>      /* Query the attributes and runtime status of the netdev. */
>      ret = query_netdev(netdev_get_name(&netdev->up), &info, &buf);
> -    if (ret) {
> +    /* "Internal" netdevs do not exist in the kernel yet.  They need to be
> +     * transformed into a netdev object and passed to dpif_port_add(),
> which
> +     * will add them to the kernel.  */
> +    if (strcmp(netdev_get_type(&netdev->up), "internal") && ret) {
>          return ret;
>      }
>      ofpbuf_delete(buf);
> --
> 2.10.2.windows.1
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list