From 43e7d25d9f91dd44b4779358095a3f54ab4f3029 Mon Sep 17 00:00:00 2001 From: Joe Zhou Date: Wed, 6 Mar 2019 23:05:32 -0800 Subject: assign flood_class to vnet_sw_interface_t template in subif api handle function Change-Id: I352f4a4adcf8771c21530657efcaecb532416612 Signed-off-by: Joe Zhou (cherry picked from commit 715f94ed94638ea883f919361bff7a3f46fd1d1b) --- src/vnet/interface_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index 644babef894..3d8f47d4cb1 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -1129,6 +1129,7 @@ vl_api_create_vlan_subif_t_handler (vl_api_create_vlan_subif_t * mp) 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; @@ -1209,6 +1210,7 @@ vl_api_create_subif_t_handler (vl_api_create_subif_t * mp) 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; -- cgit 1.2.3-korg