使能带宽限速

命令功能

使能带宽限速。

命令格式

<tool name> roce_bw_ctrl -i <device name> -t <type> -c <cir> -p <pir> -n <cnp_threshold>

入参说明

参数

参数说明

取值

<device name>

设备名称。

RoCE设备,例如:hrn3_bond_0。

<type>

操作类型。

  • enable_bw_ctrl:使能限速。
  • disable_bw_ctrl:禁用限速。
  • change_param:修改限速参数。
  • query_param:查询限速参数。

<cir>

提交的限速门限。

默认值:21Gbps。

<pir>

峰值限速门限。

默认值:25Gbps。

<cnp_threshold>

ECN标记值。

默认值:3。

出参说明

项目

描述

roce_bw_ctrl command error(-1): roce bw ctrl type not set

参数错误。

其他

操作成功。

使用指南

无。

使用实例

使能带宽限速。
1
hinicadm3 roce_bw_ctrl -i hrn3_0 -t enable_bw_ctrl -c 1 -p 1