mirror of
https://github.com/ipxe/ipxe
synced 2026-01-23 20:49:40 +03:00
[ena] Leave queue base address empty when creating a low latency queue
The queue base address is meaningless for a low latency queue, since the queue entries are written directly to the on-device memory. Any non-zero queue base address will be safely ignored by the hardware, but leaves open the possibility that future revisions could treat it as an error. Leave this field as zero, to match the behaviour of the Linux driver. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -468,7 +468,10 @@ static int ena_create_sq ( struct ena_nic *ena, struct ena_sq *sq,
|
||||
req->create_sq.policy = cpu_to_le16 ( sq->policy );
|
||||
req->create_sq.cq_id = cpu_to_le16 ( cq->id );
|
||||
req->create_sq.count = cpu_to_le16 ( sq->count );
|
||||
req->create_sq.address = cpu_to_le64 ( virt_to_bus ( sq->sqe.raw ) );
|
||||
if ( ! ( sq->policy & ENA_SQ_DEVICE_MEMORY ) ) {
|
||||
req->create_sq.address =
|
||||
cpu_to_le64 ( virt_to_bus ( sq->sqe.raw ) );
|
||||
}
|
||||
|
||||
/* Issue request */
|
||||
if ( ( rc = ena_admin ( ena, req, &rsp ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user