[v1] app/testpmd: fix metering and policing command for rfc4115

Message ID 20220513035739.2792-1-shunh@nvidia.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series [v1] app/testpmd: fix metering and policing command for rfc4115 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-abi-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS

Commit Message

Shun Hao May 13, 2022, 3:57 a.m. UTC
  Add CLI command support for metering and policing of trtcm_rfc4115.

Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing")
Cc: stable@dpdk.org

Signed-off-by: Shun Hao <shunh@nvidia.com>
Acked-by: Matan Azard <matan@nvidia.com>
---
 app/test-pmd/cmdline.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Cristian Dumitrescu May 16, 2022, 5:50 p.m. UTC | #1
> -----Original Message-----
> From: Shun Hao <shunh@nvidia.com>
> Sent: Friday, May 13, 2022 4:58 AM
> To: viacheslavo@nvidia.com; matan@nvidia.com; orika@nvidia.com; Li,
> Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman Deep
> <aman.deep.singh@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>; Wu,
> Jingjing <jingjing.wu@intel.com>; Singh, Jasvinder
> <jasvinder.singh@intel.com>; Adrien Mazarguil
> <adrien.mazarguil@6wind.com>; Dumitrescu, Cristian
> <cristian.dumitrescu@intel.com>
> Cc: dev@dpdk.org; rasland@nvidia.com; stable@dpdk.org
> Subject: [PATCH v1] app/testpmd: fix metering and policing command for
> rfc4115
> 
> Add CLI command support for metering and policing of trtcm_rfc4115.
> 
> Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and
> policing")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Shun Hao <shunh@nvidia.com>
> Acked-by: Matan Azard <matan@nvidia.com>
> ---
>  app/test-pmd/cmdline.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
> index 6ffea8e21a..34410fe9f7 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -17966,6 +17966,7 @@ cmdline_parse_ctx_t main_ctx[] = {
>  	(cmdline_parse_inst_t *)&cmd_show_port_meter_cap,
>  	(cmdline_parse_inst_t *)&cmd_add_port_meter_profile_srtcm,
>  	(cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm,
> +	(cmdline_parse_inst_t
> *)&cmd_add_port_meter_profile_trtcm_rfc4115,
>  	(cmdline_parse_inst_t *)&cmd_del_port_meter_profile,
>  	(cmdline_parse_inst_t *)&cmd_create_port_meter,
>  	(cmdline_parse_inst_t *)&cmd_enable_port_meter,
> --
> 2.20.0

Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
  
Ferruh Yigit May 20, 2022, 10:09 p.m. UTC | #2
On 5/16/2022 6:50 PM, Dumitrescu, Cristian wrote:
> 
> 
>> -----Original Message-----
>> From: Shun Hao <shunh@nvidia.com>
>> Sent: Friday, May 13, 2022 4:58 AM
>> To: viacheslavo@nvidia.com; matan@nvidia.com; orika@nvidia.com; Li,
>> Xiaoyun <xiaoyun.li@intel.com>; Singh, Aman Deep
>> <aman.deep.singh@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>; Wu,
>> Jingjing <jingjing.wu@intel.com>; Singh, Jasvinder
>> <jasvinder.singh@intel.com>; Adrien Mazarguil
>> <adrien.mazarguil@6wind.com>; Dumitrescu, Cristian
>> <cristian.dumitrescu@intel.com>
>> Cc: dev@dpdk.org; rasland@nvidia.com; stable@dpdk.org
>> Subject: [PATCH v1] app/testpmd: fix metering and policing command for
>> rfc4115
>>
>> Add CLI command support for metering and policing of trtcm_rfc4115.
>>
>> Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and
>> policing")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Shun Hao <shunh@nvidia.com>
>> Acked-by: Matan Azard <matan@nvidia.com> >
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> 

Applied to dpdk-next-net/main, thanks.
  

Patch

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 6ffea8e21a..34410fe9f7 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -17966,6 +17966,7 @@  cmdline_parse_ctx_t main_ctx[] = {
 	(cmdline_parse_inst_t *)&cmd_show_port_meter_cap,
 	(cmdline_parse_inst_t *)&cmd_add_port_meter_profile_srtcm,
 	(cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm,
+	(cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm_rfc4115,
 	(cmdline_parse_inst_t *)&cmd_del_port_meter_profile,
 	(cmdline_parse_inst_t *)&cmd_create_port_meter,
 	(cmdline_parse_inst_t *)&cmd_enable_port_meter,