Lines Matching refs:flow_node
709 struct otx2_tc_flow *flow_node; in otx2_tc_del_flow() local
712 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in otx2_tc_del_flow()
715 if (!flow_node) { in otx2_tc_del_flow()
721 if (flow_node->is_act_police) { in otx2_tc_del_flow()
724 err = cn10k_map_unmap_rq_policer(nic, flow_node->rq, in otx2_tc_del_flow()
725 flow_node->leaf_profile, false); in otx2_tc_del_flow()
729 flow_node->rq, flow_node->leaf_profile); in otx2_tc_del_flow()
731 err = cn10k_free_leaf_profile(nic, flow_node->leaf_profile); in otx2_tc_del_flow()
735 flow_node->leaf_profile); in otx2_tc_del_flow()
737 __clear_bit(flow_node->rq, &nic->rq_bmap); in otx2_tc_del_flow()
742 otx2_del_mcam_flow_entry(nic, flow_node->entry); in otx2_tc_del_flow()
745 &flow_node->node, in otx2_tc_del_flow()
747 kfree_rcu(flow_node, rcu); in otx2_tc_del_flow()
749 clear_bit(flow_node->bitpos, tc_info->tc_entries_bitmap); in otx2_tc_del_flow()
870 struct otx2_tc_flow *flow_node; in otx2_tc_get_flow_stats() local
873 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in otx2_tc_get_flow_stats()
876 if (!flow_node) { in otx2_tc_get_flow_stats()
890 req->entry = flow_node->entry; in otx2_tc_get_flow_stats()
912 stats = &flow_node->stats; in otx2_tc_get_flow_stats()
914 spin_lock(&flow_node->lock); in otx2_tc_get_flow_stats()
918 spin_unlock(&flow_node->lock); in otx2_tc_get_flow_stats()