aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe Zhou <zhouyoucn@qq.com>2019-03-06 23:05:32 -0800
committerJohn Lo <loj@cisco.com>2019-03-07 14:32:53 +0000
commit67a3e2d130334094534a35236d2a623faa2399ed (patch)
tree5649f27aa9efc868f242c4996031c5fe97ab50c0 /src
parentcbd68cb711e496539c494ab64837995c126da69b (diff)
assign flood_class to vnet_sw_interface_t template in subif api handle functionv19.01.2-rc0
Change-Id: I352f4a4adcf8771c21530657efcaecb532416612 Signed-off-by: Joe Zhou <zhouyoucn@qq.com> (cherry picked from commit 715f94ed94638ea883f919361bff7a3f46fd1d1b)
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c
index d6c129025b1..bd5588e2625 100644
--- a/src/vnet/interface_api.c
+++ b/src/vnet/interface_api.c
@@ -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;