state: sync refcounts using mapped interface name, not physical interface name
This commit is contained in:
parent
b514d31c26
commit
3b178131bd
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ lif_state_sync(struct lif_dict *state, struct lif_dict *if_collection)
|
||||||
{
|
{
|
||||||
struct lif_dict_entry *entry = iter->data;
|
struct lif_dict_entry *entry = iter->data;
|
||||||
struct lif_state_record *rec = entry->data;
|
struct lif_state_record *rec = entry->data;
|
||||||
struct lif_interface *iface = lif_interface_collection_find(if_collection, entry->key);
|
struct lif_interface *iface = lif_interface_collection_find(if_collection, rec->mapped_if);
|
||||||
|
|
||||||
iface->refcount = rec->refcount;
|
iface->refcount = rec->refcount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue