From 26ce31583b1654a3acaaf6de8e9567e327fbc104 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 18 Aug 2011 11:17:29 -0700 Subject: [PATCH] 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. --- lib/dpif-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index b48be8617..359c80b7f 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; -- 2.43.0