app/testpmd: add queue based priority flow control command
authorSunil Kumar Kori <skori@marvell.com>
Tue, 8 Feb 2022 08:50:49 +0000 (14:20 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Feb 2022 13:02:28 +0000 (14:02 +0100)
commita5e579f4b4faa23a3e708925383fc470eb5d097e
treea5c2dcace6d9c84488fbdf1db3d3544d3a6c0816
parent0de345e9a0db54caea2e4c461a1c244d818442d2
app/testpmd: add queue based priority flow control command

Patch adds command line options to configure queue based
priority flow control.

- Syntax command is given as below:

set pfc_queue_ctrl <port_id> rx <on|off> <tx_qid> <tx_tc> \
tx <on|off> <rx_qid> <rx_tc> <pause_time>

- Example command to configure queue based priority flow control
  on rx and tx side for port 0, Rx queue 0, Tx queue 0 with pause
  time 2047

testpmd> set pfc_queue_ctrl 0 rx on 0 0 tx on 0 0 2047

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst