assign flood_class to vnet_sw_interface_t template in subif api handle function 98/18098/2
authorJoe Zhou <zhouyoucn@qq.com>
Thu, 7 Mar 2019 07:05:32 +0000 (23:05 -0800)
committerJohn Lo <loj@cisco.com>
Thu, 7 Mar 2019 14:29:41 +0000 (14:29 +0000)
Change-Id: I352f4a4adcf8771c21530657efcaecb532416612
Signed-off-by: Joe Zhou <zhouyoucn@qq.com>
src/vnet/interface_api.c

index d6c1290..bd5588e 100644 (file)
@@ -1128,6 +1128,7 @@ vl_api_create_vlan_subif_t_handler (vl_api_create_vlan_subif_t * mp)
 
   clib_memset (&template, 0, sizeof (template));
   template.type = VNET_SW_INTERFACE_TYPE_SUB;
+  template.flood_class = VNET_FLOOD_CLASS_NORMAL;
   template.sup_sw_if_index = hi->sw_if_index;
   template.sub.id = id;
   template.sub.eth.raw_flags = 0;
@@ -1208,6 +1209,7 @@ vl_api_create_subif_t_handler (vl_api_create_subif_t * mp)
 
   clib_memset (&template, 0, sizeof (template));
   template.type = VNET_SW_INTERFACE_TYPE_SUB;
+  template.flood_class = VNET_FLOOD_CLASS_NORMAL;
   template.sup_sw_if_index = sw_if_index;
   template.sub.id = sub_id;
   template.sub.eth.flags.no_tags = mp->no_tags;