netdev-vport: Fix warning due to new GRE type.
authorEthan Jackson <ethan@nicira.com>
Tue, 6 Nov 2012 02:26:52 +0000 (18:26 -0800)
committerEthan Jackson <ethan@nicira.com>
Tue, 6 Nov 2012 20:39:55 +0000 (12:39 -0800)
This patch fixes the following warning caused by a switch case
which was not handled.

lib/netdev-vport.c:144:5: error: enumeration value
‘OVS_VPORT_TYPE_FT_GRE’ not handled in switch

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/netdev-vport.c

index 07f345ceade81bac577e6d5ad740d94f5594210a..5171171d9e08866c9ea0192fb47c9decabdfa49d 100644 (file)
@@ -173,6 +173,7 @@ netdev_vport_get_netdev_type(const struct dpif_linux_vport *vport)
     case OVS_VPORT_TYPE_CAPWAP:
         return "capwap";
 
+    case OVS_VPORT_TYPE_FT_GRE:
     case __OVS_VPORT_TYPE_MAX:
         break;
     }