[ovs-dev] [learning v2 12/19] dpif-netdev: Also allow "dummy" netdevs in a dpif-netdev.

Ethan Jackson ethan at nicira.com
Thu Sep 8 02:41:04 UTC 2011


Looks good.

Ethan

On Fri, Aug 19, 2011 at 15:28, Ben Pfaff <blp at nicira.com> wrote:
> I've always intended this to work, but either I never tested it or the
> support rotted.
>
> This will soon be used in some tests that I will add.
> ---
>  lib/dpif-netdev.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
> index ffcc28a..3b75013 100644
> --- a/lib/dpif-netdev.c
> +++ b/lib/dpif-netdev.c
> @@ -336,7 +336,7 @@ do_add_port(struct dp_netdev *dp, const char *devname, const char *type,
>     int error;
>
>     /* XXX reject devices already in some dp_netdev. */
> -    if (type[0] == '\0' || !strcmp(type, "system")) {
> +    if (type[0] == '\0' || !strcmp(type, "system") || !strcmp(type, "dummy")) {
>         internal = false;
>     } else if (!strcmp(type, "internal")) {
>         internal = true;
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list