Type: fix
reference counting on the ip6 state was broken, meaning that disabling
one of serveral ip6 configs on an interface, completely ip6 disabled the
interface.
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: Ie3af51587310ffe871ad2a9cbd927e15a3ececa9
vec_validate (ip6_links, sw_if_index);
il = &ip6_links[sw_if_index];
- il->il_locks = 1;
+ il->il_locks = 0;
il->il_sw_if_index = sw_if_index;
sw = vnet_get_sup_sw_interface (vnm, sw_if_index);
rv = VNET_API_ERROR_VALUE_EXIST;
}
+ il->il_locks++;
+
out:
return (rv);
}