Set Port Info Parameters
更新时间: 2025/06/26
在Gitcode上查看源码

1Bh-设置端口参数(Set-Port-Info-Parameters)

修订记录

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息

功能说明

设置端口信息参数。

权限

命令信息

请求信息

字节顺序域取值说明
NetFn30h
CMD94h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=1Bh
5Parameter selector
6:NConfiguration parameter data

响应信息

字节顺序域取值说明
1Completion 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:4Manufacturer 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 progressrwdata 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 change0
Serdesrwdata1-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 Staterwdata1-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 Typerdata1-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 Raterdata1-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 Slotr
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 Namerdata1-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 Directrwdata1-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(端口类型定义)

ParameterParameter Data
port typeport type-端口类型
01h-FC Switch
02h-M8PB
other reserved

返回到索引