[dpdk-stable] patch 'net/qede: fix milliseconds sleep macro' has been queued to LTS release 18.11.11

Kevin Traynor ktraynor at redhat.com
Thu Nov 5 13:39:27 CET 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/10/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/fca5fea01594d379867068fe45924b092b9deed4

Thanks.

Kevin.

---
>From fca5fea01594d379867068fe45924b092b9deed4 Mon Sep 17 00:00:00 2001
From: Devendra Singh Rawat <dsinghrawat at marvell.com>
Date: Mon, 27 Jul 2020 19:46:44 +0530
Subject: [PATCH] net/qede: fix milliseconds sleep macro

[ upstream commit 91979430089bf897881238a168b631f1a81c5477 ]

The macro defined for milliseconds sleep was not putting the thread
to sleep and was simply calling a delay routine. This fix redefines
the macro to call the correct rte sleep API.

Fixes: ec94dbc57362 ("qede: add base driver")

Signed-off-by: Devendra Singh Rawat <dsinghrawat at marvell.com>
Signed-off-by: Igor Russkikh <irusskikh at marvell.com>
Signed-off-by: Rasesh Mody <rmody at marvell.com>
---
 drivers/net/qede/base/bcm_osal.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/qede/base/bcm_osal.h b/drivers/net/qede/base/bcm_osal.h
index 1abf44fa72..37b55244ae 100644
--- a/drivers/net/qede/base/bcm_osal.h
+++ b/drivers/net/qede/base/bcm_osal.h
@@ -82,7 +82,6 @@ typedef int bool;
 #define DELAY(x) rte_delay_us(x)
 #define usec_delay(x) DELAY(x)
-#define msec_delay(x) DELAY(1000 * (x))
 #define OSAL_UDELAY(time) usec_delay(time)
-#define OSAL_MSLEEP(time) msec_delay(time)
+#define OSAL_MSLEEP(time) rte_delay_us_sleep(1000 * (time))
 
 /* Memory allocations and deallocations */
-- 
2.26.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-11-05 12:38:54.633976128 +0000
+++ 0020-net-qede-fix-milliseconds-sleep-macro.patch	2020-11-05 12:38:54.181895974 +0000
@@ -1 +1 @@
-From 91979430089bf897881238a168b631f1a81c5477 Mon Sep 17 00:00:00 2001
+From fca5fea01594d379867068fe45924b092b9deed4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 91979430089bf897881238a168b631f1a81c5477 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 5d4df5907a..ded4fb0f57 100644
+index 1abf44fa72..37b55244ae 100644
@@ -24 +25 @@
-@@ -82,7 +82,6 @@ typedef intptr_t osal_int_ptr_t;
+@@ -82,7 +82,6 @@ typedef int bool;



More information about the stable mailing list