Set Port Info Parameters
更新时间: 2025/06/26
在Gitcode上查看源码1Bh-设置端口参数(Set-Port-Info-Parameters)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
设置端口信息参数。
权限
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 94h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | Sub command,子命令=1Bh |
| 5 | Parameter selector |
| 6:N | Configuration parameter data |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code 80h=parameter not supported. 81h=attempt to set the 'set in progress' value (in parameter#0) when not in the 'set complete' state. (This completion code provides a way to recognize that another party has already 'claimed' the parameters) 82h=attempt to write read-only parameter |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
命令样例
设置端口信息参数
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN附表1 Port Info Parameters Table(可用于前插板和后插板xcu/liu板网络端口配置)
| Parameter | # | Parameter Data | #(十进制) |
|---|---|---|---|
| Set in progress | rw | data 1-This parameter is used to indicate when any of the following parameters are being updated, and when the updates are completed. The bit is primarily provided to alert software than some other software or utility is in the process of making changes to the data. An implementation can also elect to provide a 'rollback' feature that uses this information to decide whether to 'roll back' to the previous configuration information, or to accept the configuration change | 0 |
| Serdes | rw | data1-interface selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-slot mask(Block Selector),前插槽位掩码,data2.bit0<->slot1 data6-port type(Sub Block Selector),端口类型,见Port Type Table表 data7-rate type(Option Selector),速率类型 00h-ignore,忽略 01h-2G 02h-4G 03h-8G other reserved data8-slot id data9-port count,若该slot未连接到port,则port count等于0 data10:15-port1 serdes, LSB first serdes参数: (6-0)-reserved (7bits) (10-7)-Z1CNT (4bits) (11)-G1CNT (1bit) (16-12)-ZCNT (5bits) (22-17)-TLTH (6bits) (28-23)-DFE (6bits) (33-29)-MAIN (5bits) (37-34)-PRE (4bits) (41-38)-POST (4bits) (42)-signal slew rate (1bit) (47-43)-AMP (5bits) data16:21-port2 serdes ...... dataM-lot id=N data(M+1)-port count data(M+2):(M+7)-port1 serdes ...... | 1 |
| Link State | rw | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-slot mask(Block Selector),前插槽位掩码,data2.bit0<->slot1 data6-port type(Sub Block Selector),端口类型,见Port Type Table表 data7-slot id data8-port count,若该slot未连接到port,则port count等于0 data9-port1 link 00h-link down 01h-link up other reserved ...... dataM- lot id=N data(M+1)-port count data(M+2)-port1 link ...... | 2 |
| Port Type | r | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-slot mask(Block Selector),前插槽位掩码,data2.bit0<->slot1 data6-slot id data7-port count,若该slot未连接到port,则port count等于0 data8-port1 type 00h GE 01h 10GE 02h 40GE 03h FC 04h FCoE other reserved ...... dataM-slot id=N data(M+1)-port count data(M+2)-port1 type ...... | 3 |
| Port Rate | r | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-slot mask(Block Selector),端口掩码,data2.bit0<->slot1 data6-port type(Sub Block Selector),端口类型 01h-FC Switch other reserved data7-slot id data8-port count,若该slot未连接到port,则port count等于0 data9-port1 rate 00h 1M 01h 10M 02h 100M 03h 1000M 04h 10000M 05h 40000M other reserved ...... dataM-slot id=N data(M+1)-port count data(M+2)-port1 rate ...... | 4 |
| Dest Slot | r r rw | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-port mask(Block Selector),端口掩码,data2.bit0 <-> port0 data6-port type (Sub Block Selector),端口类型,见Port Type Table表 data7-port1 dest slot,如果是无效或面板端口则默认为0xff ...... data(N+5)-portN dest slot | 5 |
| Port Name | r | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-slot mask(Block Selector),前插槽位掩码,,data2.bit0 <-> slot1 data6-port type (Sub Block Selector),端口类型,见Port Type Table表 data7-slot id data8-port count, 若该slot未连接到port,则port count等于0 data9:data32-port1 name ...... dataM-slot id=N data(M+1)-port count data(M+2):data(M+25)-port1 name ...... | 6 |
| Port Direct | rw | data1-Interface Selector(Set Selector),接口选择(0-对外,1-对内),预留,目前只针对对内 data2:5-port mask(Block Selector),端口掩码,data2.bit0 <-> port1 data6-port type (Sub Block Selector),端口类型,见Port Type Table表 data7-port1 direct 0h-invalid 1h-left 2h-right other reserved ...... data(N+5)-portN direct | 7 |
附表2 Port Type Table(端口类型定义)
| Parameter | Parameter Data |
|---|---|
| port type | port type-端口类型 01h-FC Switch 02h-M8PB other reserved |