Searched refs:vr_entry (Results 1 – 1 of 1) sorted by relevance
3287 struct mlxsw_sp_nexthop_group_vr_entry *vr_entry; in mlxsw_sp_nexthop_group_vr_entry_create() local3290 vr_entry = kzalloc(sizeof(*vr_entry), GFP_KERNEL); in mlxsw_sp_nexthop_group_vr_entry_create()3291 if (!vr_entry) in mlxsw_sp_nexthop_group_vr_entry_create()3294 vr_entry->key.vr_id = fib->vr->id; in mlxsw_sp_nexthop_group_vr_entry_create()3295 vr_entry->key.proto = fib->proto; in mlxsw_sp_nexthop_group_vr_entry_create()3296 refcount_set(&vr_entry->ref_count, 1); in mlxsw_sp_nexthop_group_vr_entry_create()3298 err = rhashtable_insert_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_create()3303 list_add(&vr_entry->list, &nh_grp->vr_list); in mlxsw_sp_nexthop_group_vr_entry_create()3308 kfree(vr_entry); in mlxsw_sp_nexthop_group_vr_entry_create()3314 struct mlxsw_sp_nexthop_group_vr_entry *vr_entry) in mlxsw_sp_nexthop_group_vr_entry_destroy() argument[all …]