Lines Matching refs:classid
418 node->classid = OTX2_QOS_ROOT_CLASSID; in otx2_qos_alloc_root()
420 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, node->classid); in otx2_qos_alloc_root()
467 txschq_node->classid = OTX2_QOS_CLASS_NONE; in otx2_qos_alloc_txschq_node()
500 u16 classid, u32 prio, u64 rate, u64 ceil, in otx2_qos_sw_create_leaf_node() argument
512 node->classid = classid; in otx2_qos_sw_create_leaf_node()
525 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, classid); in otx2_qos_sw_create_leaf_node()
548 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find() argument
552 hash_for_each_possible(pfvf->qos.qos_hlist, node, hlist, classid) { in otx2_sw_node_find()
553 if (node->classid == classid) in otx2_sw_node_find()
561 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find_rcu() argument
565 hash_for_each_possible_rcu(pfvf->qos.qos_hlist, node, hlist, classid) { in otx2_sw_node_find_rcu()
566 if (node->classid == classid) in otx2_sw_node_find_rcu()
573 int otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) in otx2_get_txq_by_classid() argument
579 node = otx2_sw_node_find_rcu(pfvf, classid); in otx2_get_txq_by_classid()
1185 node->classid, node->quantum, in is_qos_node_dwrr()
1202 static int otx2_qos_leaf_alloc_queue(struct otx2_nic *pfvf, u16 classid, in otx2_qos_leaf_alloc_queue() argument
1214 classid, parent_classid, rate, ceil, prio, quantum); in otx2_qos_leaf_alloc_queue()
1282 node = otx2_qos_sw_create_leaf_node(pfvf, parent, classid, prio, rate, in otx2_qos_leaf_alloc_queue()
1341 static int otx2_qos_leaf_to_inner(struct otx2_nic *pfvf, u16 classid, in otx2_qos_leaf_to_inner() argument
1353 classid, child_classid, rate, ceil); in otx2_qos_leaf_to_inner()
1368 node = otx2_sw_node_find(pfvf, classid); in otx2_qos_leaf_to_inner()
1480 static int otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, in otx2_qos_leaf_del() argument
1488 netdev_dbg(pfvf->netdev, "TC_HTB_LEAF_DEL classid %04x\n", *classid); in otx2_qos_leaf_del()
1491 node = otx2_sw_node_find(pfvf, *classid); in otx2_qos_leaf_del()
1525 static int otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, in otx2_qos_leaf_del_last() argument
1536 "TC_HTB_LEAF_DEL_LAST classid %04x\n", classid); in otx2_qos_leaf_del_last()
1539 node = otx2_sw_node_find(pfvf, classid); in otx2_qos_leaf_del_last()
1549 parent = otx2_sw_node_find(pfvf, node->parent->classid); in otx2_qos_leaf_del_last()
1659 htb->classid, htb->extack); in otx2_setup_tc_htb()
1663 res = otx2_qos_leaf_alloc_queue(pfvf, htb->classid, in otx2_setup_tc_htb()
1674 htb->classid, htb->rate, in otx2_setup_tc_htb()
1678 return otx2_qos_leaf_del(pfvf, &htb->classid, htb->extack); in otx2_setup_tc_htb()
1681 return otx2_qos_leaf_del_last(pfvf, htb->classid, in otx2_setup_tc_htb()
1685 res = otx2_get_txq_by_classid(pfvf, htb->classid); in otx2_setup_tc_htb()