Searched refs:root_ht (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/sched/
H A Dcls_u32.c322 struct tc_u_hnode *root_ht; u32_init() local
327 root_ht = kzalloc(sizeof(*root_ht), GFP_KERNEL); u32_init()
328 if (root_ht == NULL) u32_init()
331 root_ht->divisor = 0; u32_init()
332 root_ht->refcnt++; u32_init()
333 root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000; u32_init()
334 root_ht->prio = tp->prio; u32_init()
339 kfree(root_ht); u32_init()
347 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); u32_init()
348 rcu_assign_pointer(tp_c->hlist, root_ht); u32_init()
349 root_ht->tp_c = tp_c; u32_init()
351 rcu_assign_pointer(tp->root, root_ht); u32_init()
480 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); u32_destroy() local
482 WARN_ON(root_ht == NULL); u32_destroy()
485 if (root_ht) { u32_destroy()
486 if (root_ht->refcnt > 1) u32_destroy()
488 if (root_ht->refcnt == 1) { u32_destroy()
489 if (!ht_empty(root_ht)) u32_destroy()
508 if (root_ht && --root_ht->refcnt == 0) u32_destroy()
509 u32_destroy_hnode(tp, root_ht); u32_destroy()
538 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); u32_delete() local
546 if (root_ht == ht) u32_delete()

Completed in 36 milliseconds