Implement Ethernet Interface Properties

Spencer Ku (古世瑜) Spencer.Ku at
Wed Dec 1 20:58:41 AEDT 2021

Hi All,

We want to implement two network Ethernet interface properties “Bandwidth” and “Drop package rate”, and expose the information via Redfish. The goal is that clients can talk to bmc via Redfish and get those two information. It will improve the debuggability of BMCs.

About the implement method, we divide the work into two parts: phosphor-network(or other suitable service) part, and bmcweb part.

For phosphor-network part, we propose to use existing tool like ipert to get the Ethernet BW/Drop package rate. Or the other method is that read TX/RX from ethernet driver (/sys/class/net/{Ethernet_Name}), then calculate the BW/Drop package rate. After that, we will need to register the D-Bus interface and sync the property info to that D-Bus.

For bmcweb part, as I know so far, there has no suitable field under the EthernetInterface <> to set BW/Drop package rate. The idea is that read the value from D-bus then set the properties under the EthernetInterface OEM field. Please let me know if I have missed anything.

We are willing to see any suggestions and alternatives as well. Thanks!


Spencer Ku
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openbmc mailing list