Lines Matching refs:l2_node

948 	struct bnxt_tc_l2_node *l2_node = flow_node->l2_node;  in bnxt_tc_put_l2_node()  local
954 if (--l2_node->refcount == 0) { in bnxt_tc_put_l2_node()
955 rc = rhashtable_remove_fast(&tc_info->l2_table, &l2_node->node, in bnxt_tc_put_l2_node()
961 kfree_rcu(l2_node, rcu); in bnxt_tc_put_l2_node()
971 struct bnxt_tc_l2_node *l2_node; in bnxt_tc_get_l2_node() local
974 l2_node = rhashtable_lookup_fast(l2_table, l2_key, ht_params); in bnxt_tc_get_l2_node()
975 if (!l2_node) { in bnxt_tc_get_l2_node()
976 l2_node = kzalloc(sizeof(*l2_node), GFP_KERNEL); in bnxt_tc_get_l2_node()
977 if (!l2_node) { in bnxt_tc_get_l2_node()
982 l2_node->key = *l2_key; in bnxt_tc_get_l2_node()
983 rc = rhashtable_insert_fast(l2_table, &l2_node->node, in bnxt_tc_get_l2_node()
986 kfree_rcu(l2_node, rcu); in bnxt_tc_get_l2_node()
992 INIT_LIST_HEAD(&l2_node->common_l2_flows); in bnxt_tc_get_l2_node()
994 return l2_node; in bnxt_tc_get_l2_node()
1007 struct bnxt_tc_l2_node *l2_node; in bnxt_tc_get_ref_flow_handle() local
1009 l2_node = bnxt_tc_get_l2_node(bp, &tc_info->l2_table, in bnxt_tc_get_ref_flow_handle()
1012 if (!l2_node) in bnxt_tc_get_ref_flow_handle()
1018 if (l2_node->refcount > 0) { in bnxt_tc_get_ref_flow_handle()
1019 ref_flow_node = list_first_entry(&l2_node->common_l2_flows, in bnxt_tc_get_ref_flow_handle()
1031 flow_node->l2_node = l2_node; in bnxt_tc_get_ref_flow_handle()
1032 list_add(&flow_node->l2_list_node, &l2_node->common_l2_flows); in bnxt_tc_get_ref_flow_handle()
1033 l2_node->refcount++; in bnxt_tc_get_ref_flow_handle()