We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Speed property from /xyz/openbmc_project/network/ethX dbus object shows 65535 (decimal number) Mbps when unplug the ethernet cable.
Speed
/xyz/openbmc_project/network/ethX
65535
root@board:~# busctl introspect xyz.openbmc_project.Network /xyz/openbmc_project/network/eth0 | grep "Speed" .Speed property u 65535 emits-change
The phosphor-networkd will report Speed property by int type from the Ethernet PHY Linux driver (https://elixir.bootlin.com/linux/v6.6/source/include/linux/phy.h#L682)
int
But the Speed property was defined as a uint32 type (phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml at master · openbmc/phosphor-dbus-interfaces)
uint32
A mismatch value type will happen when unplug the RJ45 cable, the Ethernet PHY Linux driver will return -1 value (SPEED_UNKNOWN macro) but the phosphor-networkd reports an uint32 value to the Speed property (phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml at master · openbmc/phosphor-dbus-interfaces ). So, the Speed property will be 65535 (decimal number).
-1
SPEED_UNKNOWN
The text was updated successfully, but these errors were encountered:
phosphor-networkd should probably catch the -1 condition and set the property to either 0 or max_int to indicate unknown.
0
max_int
Sorry, something went wrong.
Thank @williamspatrick , I'll push a patch to support probably catching the -1 condition and then set the property to 0 to indicate unknown.
Hi @williamspatrick , I pushed a patch to fix this issue https://gerrit.openbmc.org/c/openbmc/phosphor-networkd/+/76647 . Please help me take look it!
No branches or pull requests
The
Speed
property from/xyz/openbmc_project/network/ethX
dbus object shows65535
(decimal number) Mbps when unplug the ethernet cable.Speed
property from/xyz/openbmc_project/network/ethX
dbus object.The phosphor-networkd will report
Speed
property byint
type from the Ethernet PHY Linux driver (https://elixir.bootlin.com/linux/v6.6/source/include/linux/phy.h#L682)But the
Speed
property was defined as auint32
type (phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml at master · openbmc/phosphor-dbus-interfaces)A mismatch value type will happen when unplug the RJ45 cable, the Ethernet PHY Linux driver will return
-1
value (SPEED_UNKNOWN
macro) but the phosphor-networkd reports anuint32
value to theSpeed
property (phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/EthernetInterface.interface.yaml at master · openbmc/phosphor-dbus-interfaces ). So, theSpeed
property will be65535
(decimal number).The text was updated successfully, but these errors were encountered: