Lines Matching defs:node

294 				     struct otx2_tc_flow *node)
300 rc = cn10k_alloc_leaf_profile(nic, &node->leaf_profile);
306 rc = cn10k_set_ipolicer_rate(nic, node->leaf_profile,
307 node->burst, node->rate, node->is_pps);
311 rc = cn10k_map_unmap_rq_policer(nic, node->rq, node->leaf_profile, true);
320 if (cn10k_free_leaf_profile(nic, node->leaf_profile))
323 node->leaf_profile);
329 struct otx2_tc_flow *node,
348 node->is_act_police = true;
349 node->rq = rq_idx;
350 node->burst = burst;
351 node->rate = rate;
352 node->is_pps = pps;
354 rc = otx2_tc_act_set_hw_police(nic, node);
364 struct otx2_tc_flow *node,
426 node->mcast_grp_idx = grp_index;
438 struct otx2_tc_flow *node)
539 err = otx2_tc_update_mcast(nic, req, extack, node,
553 return otx2_tc_act_set_police(nic, node, f, rate, burst,
615 static int otx2_tc_prepare_flow(struct otx2_nic *nic, struct otx2_tc_flow *node,
942 return otx2_tc_parse_actions(nic, &rule->action, req, f, node);
989 struct otx2_tc_flow *node)
996 if (node == tmp) {
997 list_del(&node->list);
1004 struct otx2_tc_flow *node)
1010 /* If the flow list is empty then add the new node */
1012 list_add(&node->list, &flow_cfg->flow_list_tc);
1018 if (node->prio < tmp->prio)
1023 list_add(&node->list, pos->prev);
1096 struct otx2_tc_flow *node)
1109 if (node == tmp) {
1135 struct otx2_tc_flow *node)
1147 list_idx = otx2_tc_add_to_flow_list(flow_cfg, node);
1166 struct otx2_tc_flow *node,
1170 return otx2_tc_update_mcam_table_add_req(nic, flow_cfg, node);
1172 return otx2_tc_update_mcam_table_del_req(nic, flow_cfg, node);
1254 /* allocate memory for the new flow and it's node */
1610 struct otx2_tc_flow *node)
1614 if (otx2_tc_act_set_hw_police(nic, node))
1623 memcpy(req, &node->req, sizeof(struct npc_install_flow_req));
1635 struct otx2_tc_flow *node;
1644 list_for_each_entry(node, &flow_cfg->flow_list_tc, list) {
1645 if (node->is_act_police)
1646 otx2_tc_config_ingress_rule(nic, node);