X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_bd.c;h=973beb71cd0b5550afb9c1644f21cfe44256e45d;hb=bdc0e6b7204ea0211d4f7881497e4306586fb9ef;hp=7c3e70ce189a52321925f57a6cc981deb93e219a;hpb=701625b84f7a3ffc62520e0ba88bb9bbff4b280e;p=vpp.git diff --git a/src/vnet/l2/l2_bd.c b/src/vnet/l2/l2_bd.c index 7c3e70ce189..973beb71cd0 100644 --- a/src/vnet/l2/l2_bd.c +++ b/src/vnet/l2/l2_bd.c @@ -58,6 +58,7 @@ bd_validate (l2_bridge_domain_t * bd_config) bd_config->flood_count = 0; bd_config->tun_master_count = 0; bd_config->tun_normal_count = 0; + bd_config->no_flood_count = 0; bd_config->mac_by_ip4 = 0; bd_config->mac_by_ip6 = hash_create_mem (0, sizeof (ip6_address_t), sizeof (uword)); @@ -199,6 +200,8 @@ bd_remove_member (l2_bridge_domain_t * bd_config, u32 sw_if_index) bd_config->tun_master_count--; else if (sw_if->flood_class == VNET_FLOOD_CLASS_TUNNEL_NORMAL) bd_config->tun_normal_count--; + else if (sw_if->flood_class == VNET_FLOOD_CLASS_NO_FLOOD) + bd_config->no_flood_count--; } vec_delete (bd_config->members, 1, ix); update_flood_count (bd_config); @@ -724,7 +727,7 @@ VLIB_CLI_COMMAND (bd_arp_term_cli, static) = { * 6-byte MAC address directly in the hash table entry uword. * * @warning This only works for 64-bit processor with 8-byte uword; - * which means this code *WILL NOT WORK* for a 32-bit prcessor with + * which means this code *WILL NOT WORK* for a 32-bit processor with * 4-byte uword. */ u32 @@ -739,7 +742,7 @@ bd_add_del_ip_mac (u32 bd_index, ASSERT (sizeof (uword) == sizeof (u64)); /* make sure uword is 8 bytes */ ASSERT (bd_is_valid (bd_cfg)); - mac16[3] = 0; /* Clear last 2 unsed bytes of the 8-byte MAC address */ + mac16[3] = 0; /* Clear last 2 unused bytes of the 8-byte MAC address */ if (is_ip6) { ip6_address_t *ip6_addr_key; @@ -748,7 +751,7 @@ bd_add_del_ip_mac (u32 bd_index, if (is_add) { if (old_mac == 0) - { /* new entry - allocate and craete ip6 address key */ + { /* new entry - allocate and create ip6 address key */ ip6_addr_key = clib_mem_alloc (sizeof (ip6_address_t)); clib_memcpy (ip6_addr_key, ip_addr, sizeof (ip6_address_t)); } @@ -757,7 +760,7 @@ bd_add_del_ip_mac (u32 bd_index, return 0; } else - { /* updat mac for ip6 address */ + { /* update mac for ip6 address */ hp = hash_get_pair (bd_cfg->mac_by_ip6, ip_addr); ip6_addr_key = (ip6_address_t *) hp->key; }