Skip to content

Commit

Permalink
net/ena: fix admin CQ polling for 32-bit
Browse files Browse the repository at this point in the history
[ upstream commit 8190a84 ]

Recent modifications to admin command queue polling logic
did not support 32-bit applications.  Updated the driver to
work for 32 or 64 bit applications

Fixes: 3adcba9 ("net/ena: update HAL to the newer version")

Signed-off-by: David Harton <dharton@cisco.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
  • Loading branch information
David Harton authored and kevintraynor committed Aug 28, 2019
1 parent 670186c commit 6cfe6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ena/base/ena_com.c
Expand Up @@ -526,7 +526,7 @@ static int ena_com_wait_and_process_admin_cq_polling(struct ena_comp_ctx *comp_c
struct ena_com_admin_queue *admin_queue)
{
unsigned long flags = 0;
unsigned long timeout;
uint64_t timeout;
int ret;

timeout = ENA_GET_SYSTEM_TIMEOUT(admin_queue->completion_timeout);
Expand Down

0 comments on commit 6cfe6eb

Please sign in to comment.