From 1b3d4dae5f41e70af385dfb0e284b4cece44d887 Mon Sep 17 00:00:00 2001 From: Hieu Huynh Date: Wed, 28 Jul 2021 08:06:42 +0000 Subject: 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 Change-Id: I57047151fc4eea08c857b95c0770d89ba95f9bc7 --- .../meta-common/recipes-phosphor/network/phosphor-network_%.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 meta-ampere/meta-common/recipes-phosphor/network/phosphor-network_%.bbappend (limited to 'meta-ampere') 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" -- cgit v1.2.3