Lines Matching refs:l2_node

717 	struct bnxt_tc_l2_node *l2_node = flow_node->l2_node;  in bnxt_tc_put_l2_node()  local
723 if (--l2_node->refcount == 0) { in bnxt_tc_put_l2_node()
724 rc = rhashtable_remove_fast(&tc_info->l2_table, &l2_node->node, in bnxt_tc_put_l2_node()
730 kfree_rcu(l2_node, rcu); in bnxt_tc_put_l2_node()
740 struct bnxt_tc_l2_node *l2_node; in bnxt_tc_get_l2_node() local
743 l2_node = rhashtable_lookup_fast(l2_table, l2_key, ht_params); in bnxt_tc_get_l2_node()
744 if (!l2_node) { in bnxt_tc_get_l2_node()
745 l2_node = kzalloc(sizeof(*l2_node), GFP_KERNEL); in bnxt_tc_get_l2_node()
746 if (!l2_node) { in bnxt_tc_get_l2_node()
751 l2_node->key = *l2_key; in bnxt_tc_get_l2_node()
752 rc = rhashtable_insert_fast(l2_table, &l2_node->node, in bnxt_tc_get_l2_node()
755 kfree_rcu(l2_node, rcu); in bnxt_tc_get_l2_node()
761 INIT_LIST_HEAD(&l2_node->common_l2_flows); in bnxt_tc_get_l2_node()
763 return l2_node; in bnxt_tc_get_l2_node()
776 struct bnxt_tc_l2_node *l2_node; in bnxt_tc_get_ref_flow_handle() local
778 l2_node = bnxt_tc_get_l2_node(bp, &tc_info->l2_table, in bnxt_tc_get_ref_flow_handle()
781 if (!l2_node) in bnxt_tc_get_ref_flow_handle()
787 if (l2_node->refcount > 0) { in bnxt_tc_get_ref_flow_handle()
788 ref_flow_node = list_first_entry(&l2_node->common_l2_flows, in bnxt_tc_get_ref_flow_handle()
800 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
801 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
802 l2_node->refcount++; in bnxt_tc_get_ref_flow_handle()