mirror of https://github.com/ipxe/ipxe.git
[ena] Specify the unused completion queue MSI-X vector as 0xffffffff
Some versions of the ENA firmware (observed on a c6i.large instance in eu-west-2) will complain if the completion queue's MSI-X vector field is left empty, even though the queue configuration specifies that interrupts are not used. Work around these firmware versions by passing in what appears to be the magic "no MSI-X vector" value in this field. Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/732/head
parent
6d2cead461
commit
9f81e97af5
|
@ -469,6 +469,7 @@ static int ena_create_cq ( struct ena_nic *ena, struct ena_cq *cq ) {
|
|||
req->header.opcode = ENA_CREATE_CQ;
|
||||
req->create_cq.size = cq->size;
|
||||
req->create_cq.count = cpu_to_le16 ( cq->requested );
|
||||
req->create_cq.vector = cpu_to_le32 ( ENA_MSIX_NONE );
|
||||
req->create_cq.address = cpu_to_le64 ( virt_to_bus ( cq->cqe.raw ) );
|
||||
|
||||
/* Issue request */
|
||||
|
|
|
@ -230,6 +230,14 @@ struct ena_create_cq_req {
|
|||
uint64_t address;
|
||||
} __attribute__ (( packed ));
|
||||
|
||||
/** Empty MSI-X vector
|
||||
*
|
||||
* Some versions of the ENA firmware will complain if the completion
|
||||
* queue's MSI-X vector field is left empty, even though the queue
|
||||
* configuration specifies that interrupts are not used.
|
||||
*/
|
||||
#define ENA_MSIX_NONE 0xffffffffUL
|
||||
|
||||
/** Create completion queue response */
|
||||
struct ena_create_cq_rsp {
|
||||
/** Header */
|
||||
|
|
Loading…
Reference in New Issue