state: sync refcounts using mapped interface name, not physical interface name

This commit is contained in:
Ariadne Conill 2020-09-08 19:25:00 -06:00
parent b514d31c26
commit 3b178131bd

View file

@ -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_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;
}