Searched refs:tp_c (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.1/net/sched/ |
D | cls_u32.c | 254 static struct tc_u_hnode *u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument 258 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht() 289 struct tc_u_common *tp_c = tp->data; in u32_get() local 294 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get() 306 static u32 gen_new_htid(struct tc_u_common *tp_c, struct tc_u_hnode *ptr) in gen_new_htid() argument 308 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid() 354 struct tc_u_common *tp_c = tc_u_common_find(key); in u32_init() local 361 root_ht->handle = tp_c ? gen_new_htid(tp_c, root_ht) : 0x80000000; in u32_init() 366 if (tp_c == NULL) { in u32_init() 367 tp_c = kzalloc(struct_size(tp_c, hlist->ht, 1), GFP_KERNEL); in u32_init() [all …]
|