netdev-dummy: Stop overriding patch vport type with dummy.
authorYAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Wed, 28 Aug 2013 07:33:07 +0000 (16:33 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 28 Aug 2013 19:36:47 +0000 (12:36 -0700)
There's little point to override patch ports, which is implmeneted
purely in our userland process these days, with a dummy implementation.

This allows testing patch ports in "make sandbox" environment.

Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-dummy.c

index 16a6b0b..8f3deb2 100644 (file)
@@ -912,6 +912,9 @@ netdev_dummy_register(bool override)
         sset_init(&types);
         netdev_enumerate_types(&types);
         SSET_FOR_EACH (type, &types) {
+            if (!strcmp(type, "patch")) {
+                continue;
+            }
             if (!netdev_unregister_provider(type)) {
                 struct netdev_class *class;
                 int error;