Set Port Info Parameters
更新时间: 2026/08/06
在Gitcode上查看源码Set Port Info Parameters
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Set port parameters.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 94h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command, sub command = 1Bh |
| 5 | Parameter selector |
| 6:N | Configuration parameter data |
Response Information
| Byte | Data Field |
|---|---|
| 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. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
Reference
Table 1 Port Info Parameters Table (used for configuring network ports on the front board and rear board XCU/LIU)
| Parameter | # | Parameter Data | #(Decimal) |
|---|---|---|---|
| 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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-slot mask (Block Selector), front slot mask, data2.bit0<->slot1 data6-port type (Sub Block Selector): port type. For details, see the Port Type Table. data7-rate type (Option Selector): rate type 00h-ignore: ignore 01h-2G 02h-4G 03h-8G other reserved data8-slot id data9-port count. If the slot is not connected to a port, the port count is 0. data10:15-port1 serdes, LSB first serdes parameter: (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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-slot mask (Block Selector), front slot mask, data2.bit0<->slot1 data6-port type (Sub Block Selector): port type. For details, see the Port Type Table. data7-slot id data8-port count. If the slot is not connected to a port, the port count is 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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-slot mask (Block Selector), front slot mask, data2.bit0<->slot1 data6-slot id data7-port count. If the slot is not connected to a port, the port count is 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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-slot mask (Block Selector), port mask, data2.bit0<->slot1 data6-port type (Sub Block Selector): port type 01h-FC Switch other reserved data7-slot id data8-port count. If the slot is not connected to a port, the port count is 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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-port mask (Block Selector), port mask, data2.bit0 <-> port0 data6-port type (Sub Block Selector): port type. For details, see the Port Type Table. data7-port1 dest slot. If the value is invalid or a panel port is used, the default value is 0xff. ...... data(N+5)-portN dest slot | 5 |
| Port Name | r | data1-Interface Selector (Set Selector): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-slot mask (Block Selector), front slot mask, data2.bit0 <-> slot1 data6-port type (Sub Block Selector): port type. For details, see the Port Type Table. data7-slot id data8-port count. If the slot is not connected to a port, the port count is 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): interface selection (0: external; 1: internal). This field is reserved and is used only for internal use. data2:5-port mask (Block Selector), port mask, data2.bit0 <-> port1 data6-port type (Sub Block Selector): port type. For details, see the Port Type Table. data7-port1 direct 0h-invalid 1h-left 2h-right other reserved ...... data(N+5)-portN direct | 7 |
Table 2 Port Type Table
| Parameter | Parameter Data |
|---|---|
| port type | port type: port type 01h-FC Switch 02h-M8PB other reserved |
Command Example
Set port parameters.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN