netdev-vport: Again allow "tap" devices to be added to bridges.
authorBen Pfaff <blp@nicira.com>
Mon, 31 Oct 2011 17:54:30 +0000 (10:54 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 31 Oct 2011 17:54:30 +0000 (10:54 -0700)
I did not check that tap devices otherwise work.  This at least allows
them to be part of a bridge again.

Reported-by: Janis Hamme <janis.hamme@student.kit.edu>
AUTHORS
lib/netdev-vport.c

diff --git a/AUTHORS b/AUTHORS
index 4c743b5b96bb038c8df02d7d566b2401fc3e268f..bc38e598aef316c6e413428fb9376d1f9970ab66 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -75,6 +75,7 @@ Hector Oron             hector.oron@gmail.com
 Henrik Amren            henrik@nicira.com
 Jad Naous               jnaous@gmail.com
 Jan Medved              jmedved@juniper.net
+Janis Hamme             janis.hamme@student.kit.edu
 Jed Daniels             openvswitch@jeddaniels.com
 Jeongkeun Lee           jklee@hp.com
 Joan Cirer              joan@ev0.net
index f6dbd03edd05443f08ce7e4c9b959621082c78a1..77b151d0981161e6d4b55983f971c962085216e6 100644 (file)
@@ -131,7 +131,8 @@ netdev_vport_get_vport_type(const struct netdev *netdev)
 
     return (is_vport_class(class) ? vport_class_cast(class)->type
             : class == &netdev_internal_class ? OVS_VPORT_TYPE_INTERNAL
-            : class == &netdev_linux_class ? OVS_VPORT_TYPE_NETDEV
+            : (class == &netdev_linux_class ||
+               class == &netdev_tap_class) ? OVS_VPORT_TYPE_NETDEV
             : OVS_VPORT_TYPE_UNSPEC);
 }