Elastic Network Adapter
With the release of RHEL 7.4, Red Hat updated the kernel-drivers to include support for AWS's Elastic Network Adapter. Red Hat also updated their published AMIs to support this capability.
Previously, when SRIOV-enabling a Red Hat AMI so that the ixgbevf drivers could support up to 10Gbps of throughput, one could still query the NIC (e.g., ethtool eth0) for supported speeds. When ENA is enabled, I can see that the ena-driver is in use:
# ethtool -i eth0
driver: ena
version: 1.0.2
firmware-version:
expansion-rom-version:
bus-info: 0000:00:03.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
However, when trying to query for speed, I just get an error:
# ethtool eth0
Settings for eth0:
Cannot get device settings: Operation not permitted
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x000004e3 (1251)
drv probe ifup rx_err tx_err tx_done
Link detected: yes
Other than, "eth0 is bound to ena so you know the speeds are available", is there any way to probe for the actual NIC-speed?
Responses
I found the source code of the ena driver here and did some light reading.
The code that provides the speed information is in ena_ethtool.c. It basically calls the OS-independent part of the ena driver, which just sends a ENA_ADMIN_GET_FEATURE opcode with parameter ENA_ADMIN_LINK_CONFIG to whatever part of the networking architecture runs at the hypervisor side, and then gets back a response full of juicy details about NIC link configuration.
Unfortunately, the speed reporting was added in ena driver version 1.1.2, so your version 1.0.2 will not have it yet. So, unless you're willing to roll your own backport of the ena driver, you'll need to wait for driver version 1.1.2 or later to hit RHEL.
According to the commit notes, 1.1.2 was the next release after 1.0.2, so it seems likely that as soon as the RHEL driver gets updated for any reason, the speed reporting will be included in that update.
You may want to submit an RFE through ELRepo's bug tracker. There is no guarantee that a newer version builds without an issue, but it's worth a try.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
