Please update the testpmd doc, with that added, Acked-by: Chengwen Feng <fengcheng...@huawei.com>
On 2024/10/8 22:43, Bruce Richardson wrote: > Support use of the rte_tm_node_query API to print out details about > previously added TM nodes in testpmd. > > Example output, configuring three nodes, and then printing the details: > > testpmd> add port tm nonleaf node 0 100 -1 0 1 0 -1 1 0 0 > testpmd> add port tm nonleaf node 0 90 100 0 1 1 -1 1 0 0 > testpmd> add port tm leaf node 0 0 90 0 1 2 -1 0 0xffffffff 0 0 > testpmd> > testpmd> show port tm node 0 100 > Port 0 TM Node 100 > Parent Node ID: <NULL> > Level ID: 0 > Priority: 0 > Weight: 0 > Shaper Profile ID: <none> > Shared Shaper IDs: <none> > Stats Mask: 0 > Nonleaf Node Parameters > Num Strict Priorities: 1 > WFQ Weights Mode: WFQ > testpmd> show port tm node 0 90 > Port 0 TM Node 90 > Parent Node ID: 100 > Level ID: 1 > Priority: 0 > Weight: 1 > Shaper Profile ID: <none> > Shared Shaper IDs: <none> > Stats Mask: 0 > Nonleaf Node Parameters > Num Strict Priorities: 1 > WFQ Weights Mode: WFQ > testpmd> show port tm node 0 0 > Port 0 TM Node 0 > Parent Node ID: 90 > Level ID: 2 > Priority: 0 > Weight: 1 > Shaper Profile ID: <none> > Shared Shaper IDs: <none> > Stats Mask: 0 > Leaf Node Parameters > CMAN Mode: Tail Drop > WRED Profile ID: <none> > Shared WRED Context Ids: <none> > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> > --- > app/test-pmd/cmdline.c | 1 + > app/test-pmd/cmdline_tm.c | 131 ++++++++++++++++++++++++++++++++++++++ > app/test-pmd/cmdline_tm.h | 1 + > 3 files changed, 133 insertions(+) > ...