From: Ben Pfaff Date: Thu, 18 Aug 2011 18:17:29 +0000 (-0700) Subject: dpif-netdev: Also allow "dummy" netdevs in a dpif-netdev. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26ce31583b1654a3acaaf6de8e9567e327fbc104;p=openvswitch dpif-netdev: Also allow "dummy" netdevs in a dpif-netdev. 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. --- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index b48be861..359c80b7 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;