]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ena] Provide a host information page
authorMichael Brown <mcb30@ipxe.org>
Fri, 26 Aug 2022 12:37:23 +0000 (13:37 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 26 Aug 2022 18:38:27 +0000 (19:38 +0100)
commit3b81a4e2568cfca50893095638a03069785cd33e
treebc36cba7cac5a1b11c165441821724104b76facb
parent9f81e97af5e3861ea2d0ad7b11f2c8746c2c52f9
[ena] Provide a host information page

Some versions of the ENA firmware (observed on a c6i.large instance in
eu-west-2) seem to require a host information page, without which the
CREATE_CQ command will fail with ENA_ADMIN_UNKNOWN_ERROR.

These firmware versions also seem to require us to claim that we are a
Linux kernel with a specific driver major version number.  This
appears to be a firmware bug, as revealed by Linux kernel commit
1a63443af ("net/amazon: Ensure that driver version is aligned to the
linux kernel"): this commit changed the value of the driver version
number field to be the Linux kernel version, and was hastily reverted
in commit 92040c6da ("net: ena: fix broken interface between ENA
driver and FW") which clarified that the version number field does
actually have some undocumented significance to some versions of the
firmware.

Fix by providing a host information page via the SET_FEATURE command,
incorporating the apparently necessary lies about our identity.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ena.c
src/drivers/net/ena.h