]> git.droids-corp.org - dpdk.git/commitdiff
app/testpmd: fix help of create meter command
authorJin Liu <jin.liu@corigine.com>
Thu, 28 Apr 2022 02:03:32 +0000 (04:03 +0200)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Tue, 31 May 2022 13:16:47 +0000 (15:16 +0200)
The help message of create meter command is incomplete,
lack of policy_id param, update help string.

Fixes: f29fa2c59b85 ("app/testpmd: support policy actions per color")
Cc: stable@dpdk.org
Signed-off-by: Jin Liu <jin.liu@corigine.com>
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
app/test-pmd/cmdline_mtr.c

index ad7ef6ad986159e2a3812644dd2b0bcae46026b7..a0f885f190da3356926b341a75ca71eacc0c0464 100644 (file)
@@ -817,8 +817,8 @@ static void cmd_create_port_meter_parsed(void *parsed_result,
 cmdline_parse_inst_t cmd_create_port_meter = {
        .f = cmd_create_port_meter_parsed,
        .data = NULL,
-       .help_str = "create port meter <port_id> <mtr_id> <profile_id> <meter_enable>(yes|no) "
-               "<stats_mask> <shared> <use_pre_meter_color> "
+       .help_str = "create port meter <port_id> <mtr_id> <profile_id> <policy_id> "
+               "<meter_enable>(yes|no) <stats_mask> <shared> <use_pre_meter_color> "
                "[<dscp_tbl_entry0> <dscp_tbl_entry1> ...<dscp_tbl_entry63>]",
        .tokens = {
                (void *)&cmd_create_port_meter_create,