app/testpmd: add TM command for non-leaf and packet mode
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Wed, 22 Apr 2020 17:21:03 +0000 (22:51 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commitbb52561e539b2a96fafa96099b157622a448d916
treef1ea6e4281a376518ceffd7448d63a4f86628dee
parent57fc9e4703b65e1b523261596c485c0d487be786
app/testpmd: add TM command for non-leaf and packet mode

Add TM command to enable packet mode for all SP children
in non leaf node. This is a new command as
"add tm nonleaf node pktmode".

Also add support to shaper profile add command to take
packet mode parameter used to setup shaper in packet mode.
This adds an extra argument "packet_mode" to shaper profile add command
"add port tm node shaper profile" as last argument.

This patch also dumps new tm port/level/node capabilities
sched_wfq_packet_mode_supported, sched_wfq_byte_mode_supported,
shaper_private_packet_mode_supported, shaper_private_byte_mode_supported,
shaper_shared_packet_mode_supported, shaper_shared_byte_mode_supported.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
app/test-pmd/cmdline.c
app/test-pmd/cmdline_tm.c
app/test-pmd/cmdline_tm.h
doc/guides/testpmd_app_ug/testpmd_funcs.rst