Home
last modified time | relevance | path

Searched refs:vr_entry (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c3116 struct mlxsw_sp_nexthop_group_vr_entry *vr_entry; in mlxsw_sp_nexthop_group_vr_entry_create() local
3119 vr_entry = kzalloc(sizeof(*vr_entry), GFP_KERNEL); in mlxsw_sp_nexthop_group_vr_entry_create()
3120 if (!vr_entry) in mlxsw_sp_nexthop_group_vr_entry_create()
3123 vr_entry->key.vr_id = fib->vr->id; in mlxsw_sp_nexthop_group_vr_entry_create()
3124 vr_entry->key.proto = fib->proto; in mlxsw_sp_nexthop_group_vr_entry_create()
3125 refcount_set(&vr_entry->ref_count, 1); in mlxsw_sp_nexthop_group_vr_entry_create()
3127 err = rhashtable_insert_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_create()
3132 list_add(&vr_entry->list, &nh_grp->vr_list); in mlxsw_sp_nexthop_group_vr_entry_create()
3137 kfree(vr_entry); in mlxsw_sp_nexthop_group_vr_entry_create()
3143 struct mlxsw_sp_nexthop_group_vr_entry *vr_entry) in mlxsw_sp_nexthop_group_vr_entry_destroy() argument
[all …]