Merge branch 'mainstream'
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 31 Jan 2013 14:09:26 +0000 (15:09 +0100)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 31 Jan 2013 14:09:26 +0000 (15:09 +0100)
Conflicts:
lib/dpif-netdev.c

1  2 
lib/automake.mk
lib/dpif-netdev.c
lib/netdev.c

diff --cc lib/automake.mk
@@@ -90,9 -90,9 +90,11 @@@ lib_libopenvswitch_a_SOURCES = 
        lib/multipath.c \
        lib/multipath.h \
        lib/netdev-dummy.c \
 +      lib/netdev-tunnel.c \
 +      lib/netdev-pltap.c \
        lib/netdev-provider.h \
+       lib/netdev-vport.c \
+       lib/netdev-vport.h \
        lib/netdev.c \
        lib/netdev.h \
        lib/netflow.h \
@@@ -180,13 -181,18 +181,25 @@@ dpif_netdev_enumerate(struct sset *all_
      return 0;
  }
  
+ static bool
+ dpif_netdev_class_is_dummy(const struct dpif_class *class)
+ {
+     return class != &dpif_netdev_class;
+ }
++static bool
++dpif_netdev_class_is_planetlab(const struct dpif_class *class)
++{
++    return class == &dpif_planetlab_class;
++}
++
  static const char *
  dpif_netdev_port_open_type(const struct dpif_class *class, const char *type)
  {
      return strcmp(type, "internal") ? type
-                   : class == &dpif_netdev_class ? "tap"
-                   : class == &dpif_planetlab_class ? "pltap"
-                   : "dummy";
++                  : dpif_netdev_class_is_planetlab(class) ? "pltap"
+                   : dpif_netdev_class_is_dummy(class) ? "dummy"
+                   : "tap";
  }
  
  static struct dpif *
diff --cc lib/netdev.c
Simple merge