查询QPC

命令功能

获取指定RoCE设备指定QPN的QPC信息。

命令格式

<tool name> roce_dbg -s <type> -i <device name> -q <qpn> [-f]

入参说明

参数

参数说明

取值

<device name>

设备名称。

RoCE设备,例如:hrn3_bond_0。

<type>

查询内容类型。

  • qpc:查询QPC。
  • sq:查询SQ。
  • rq:查询RQ。
  • srqc:查询SRQC。
  • all:查询所有设备的QPC、SQ、RQ。

<qpn>

qp number,需要查询的QP号。

-

出参说明

项目

描述

roce_dbg command error(-1): parameter hrn1 of device name must be hrn3_[xx].

参数设备名称错误。

roce_dbg command error(-1): -q <qpn> | qpn not alive.

查询的QP不存活。

待查询QP Context数据

操作成功。

使用指南

“-f”参数时,将查询结果写入文件“/var/log/cloud_roce/roce_dbg_info_${user_name}/show_info.txt”

使用实例

根据设备名称与QP号查询QPC信息。
1
2
3
4
5
6
7
8
hinicadm3 roce_dbg -s qpc -i hrn3_bond_0 -q 85
qpc-info :               
- dev_name                                 hrn3_bond_0
- qpn                          85
- algo_type                     ldcp
- wnd_ctrl_rtt                   160
- rr_wnd                       40
- sw_wnd                       40