patch 'event/cnxk: fix nanoseconds to ticks conversion' has been queued to stable release 22.11.3
Xueming Li
xuemingl at nvidia.com
Sun Jun 25 08:34:01 CEST 2023
Hi,
FYI, your patch has been queued to stable release 22.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/27/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=53e6b8c3f04383209b9234d44cdbf4dde2675e9e
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 53e6b8c3f04383209b9234d44cdbf4dde2675e9e Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula at marvell.com>
Date: Wed, 24 May 2023 14:22:32 +0530
Subject: [PATCH] event/cnxk: fix nanoseconds to ticks conversion
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 8fecf1febf2c7914f642c50bc03f7860c1787426 ]
The number of timeout ticks is dependent on the global dequeue
timeout configured.
Fixes: 6223ede20361 ("event/cnxk: add event port link and unlink")
Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
---
drivers/event/cnxk/cnxk_eventdev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c
index db50d193a5..93e46e1b9b 100644
--- a/drivers/event/cnxk/cnxk_eventdev.c
+++ b/drivers/event/cnxk/cnxk_eventdev.c
@@ -319,9 +319,9 @@ int
cnxk_sso_timeout_ticks(struct rte_eventdev *event_dev, uint64_t ns,
uint64_t *tmo_ticks)
{
- RTE_SET_USED(event_dev);
- *tmo_ticks = NSEC2TICK(ns, rte_get_timer_hz());
+ struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);
+ *tmo_ticks = dev->deq_tmo_ns ? ns / dev->deq_tmo_ns : 0;
return 0;
}
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-06-25 14:31:59.157935100 +0800
+++ 0023-event-cnxk-fix-nanoseconds-to-ticks-conversion.patch 2023-06-25 14:31:58.305773900 +0800
@@ -1 +1 @@
-From 8fecf1febf2c7914f642c50bc03f7860c1787426 Mon Sep 17 00:00:00 2001
+From 53e6b8c3f04383209b9234d44cdbf4dde2675e9e Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 8fecf1febf2c7914f642c50bc03f7860c1787426 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -18 +20 @@
-index 99f9cdcd0d..3a05a59c75 100644
+index db50d193a5..93e46e1b9b 100644
@@ -21 +23 @@
-@@ -323,9 +323,9 @@ int
+@@ -319,9 +319,9 @@ int
More information about the stable
mailing list