设置PFC风暴参数。
<tool name> pfc -i <device name> -o <operation> [-c <cos>] [-e0 <tx_en>] [-e1 <rx_en>] [-tx_pr <tx_period>] [-tx_tm <tx_time>] [-tx_thd <tx_threshold>] [-tx_pkt <tx_packet>] [-rx_pr <rx_period>] [-rx_tm <rx_time>] [-rx_thd <rx_threshold>>] [-rx_pkt <rx_packet>]
<tool name> pfc -i <device name> -o <operation> [-c <cos>] [--tx_en <tx_en>] [--rx_en <rx_en>] [--tx_period <tx_period>] [--tx_time <tx_time>] [--tx_threshold <tx_threshold>] [--tx_packet <tx_packet>] [--rx_period <rx_period>] [--rx_time <rx_time>][--rx_threshold <rx_threshold>>] [--rx_packet <rx_packet>]
参数 |
参数说明 |
取值 |
---|---|---|
<device name> |
设备名称。 |
物理设备名,例如:hinic0、hinic1。 |
<operation> |
暂停检测操作类型。 |
|
<cos> |
队列编号。 |
取值范围(整数):0~7。 |
<tx_en> |
使能发送暂停检测。 |
|
<rx_en> |
启用RX暂停丢弃包。 |
|
<tx_period> |
设置发送方向暂停检测周期。 |
取值范围:0 ~ 0x28f5c28。 单位:ms。 最终取值需×100,例如取值为3,则设置的周期为300ms。 |
<tx_time> |
设置TX暂停检测次数。 |
0 ~ 0xffffffff。 |
<tx_threshold> |
设置TX暂停检测阈值。 |
0 ~ 0xffffffff。 |
<tx_packet> |
设置TX暂停检测接收总包数。 |
0 ~ 0xffffffff。 |
<rx_period> |
设置RX暂停检测周期。 |
取值范围:0 ~ 0x28f5c28。 单位:ms。 最终取值需×100,例如取值为3,则设置的周期为300ms。 |
<rx_time> |
设置RX暂停检测次数。 |
0 ~ 0xffffffff。 |
<rx_threshold> |
设置RX停顿检测门限。 |
0 ~ 0xffffffff。 |
<rx_packet> |
设置RX暂停检测发送总包数。 |
0 ~ 0xffffffff。 |
项目 |
描述 |
---|---|
NULL |
返回设置结果。 |
1 2 | hinicadm3 pfc -i enp134s0f0 -o 1 --tx_period 256 --tx_time 24 --tx_threshold 1024 --tx_packet 512 Set pause detection params succeed. |
1 2 | hinicadm3 pfc -i enp134s0f0 -o 1 -e0 0 Set pause detection params succeed. |