forked from amzn/amzn-drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0019-net-ena-fix-admin-CQ-polling-for-32-bit.patch
37 lines (30 loc) · 1.23 KB
/
0019-net-ena-fix-admin-CQ-polling-for-32-bit.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 78d11f06090eef2cf52d78187b4ce2c1bd4cecaa Mon Sep 17 00:00:00 2001
From: David Harton <[email protected]>
Date: Fri, 12 Jul 2019 13:35:43 -0400
Subject: [PATCH 19/27] net/ena: fix admin CQ polling for 32-bit
[ upstream commit 8190a843ef9bce3696b74ad2b057b5d86cc7b0df ]
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: 3adcba9a8987 ("net/ena: update HAL to the newer version")
Change-Id: I254d8d36af4208c713fbffcfbd0d241a88a972ce
Signed-off-by: David Harton <[email protected]>
Acked-by: Michal Krawczyk <[email protected]>
---
drivers/net/ena/base/ena_com.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c
index 4abf1a28a1..f22d67cd4d 100644
--- a/drivers/net/ena/base/ena_com.c
+++ b/drivers/net/ena/base/ena_com.c
@@ -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);
--
2.20.1