diff options
author | Hieu Huynh <hieuh@os.amperecomputing.com> | 2021-07-28 11:06:42 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-07-28 14:13:30 +0300 |
commit | 1b3d4dae5f41e70af385dfb0e284b4cece44d887 (patch) | |
tree | fd9d97eeb2fda6712d007454ab6c47ceeea96930 /meta-ampere/meta-common/recipes-phosphor | |
parent | 97466ae307a67c30d592c9d97a1e9d6e458e0e5b (diff) | |
download | openbmc-1b3d4dae5f41e70af385dfb0e284b4cece44d887.tar.xz |
meta-ampere: network: enable nic-ethtool
The SpeedMbds of ethernet interface is implemented in getInterfaceInfo()
from the phosphor-networkd repo. It is disabled by NIC_SUPPORTS_ETHTOOL
conditional compilation. The default compile mode is to omit the
getInterfaceInfo() which causes the SpeedMbps not set.
This commit supports enable the NIC_SUPPORTS_ETHTOOL to report correct
speed.
Tested:
1.Get SpeedMbps via rest:
$ curl -XGET --user root:0penBmc -H "Content-Type: application/json" \
-H "If-match: *" --insecure \
https://10.38.14.2/redfish/v1/Managers/bmc/EthernetInterfaces/eth1 \
grep | "SpeedMbps"
2.Get speed of eth1 interface on BMC console
$ cat /sys/class/net/eth1/speed
The value getting from openbmc#1 and openbmc#2 match together.
Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com>
Change-Id: I57047151fc4eea08c857b95c0770d89ba95f9bc7
Diffstat (limited to 'meta-ampere/meta-common/recipes-phosphor')
-rw-r--r-- | meta-ampere/meta-common/recipes-phosphor/network/phosphor-network_%.bbappend | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-ampere/meta-common/recipes-phosphor/network/phosphor-network_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/network/phosphor-network_%.bbappend new file mode 100644 index 000000000..b2883fcaf --- /dev/null +++ b/meta-ampere/meta-common/recipes-phosphor/network/phosphor-network_%.bbappend @@ -0,0 +1 @@ +PACKAGECONFIG_append = " nic-ethtool" |