patch 'event/dlb2: fix default credits based on HW version' has been queued to stable release 23.11.5
Xueming Li
xuemingl at nvidia.com
Wed Jul 30 16:56:25 CEST 2025
Hi,
FYI, your patch has been queued to stable release 23.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/10/25. 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=23.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=580f1da8b9fd217d19271c4cdd62273a37866a4d
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 580f1da8b9fd217d19271c4cdd62273a37866a4d Mon Sep 17 00:00:00 2001
From: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
Date: Wed, 18 Jun 2025 23:03:16 -0500
Subject: [PATCH] event/dlb2: fix default credits based on HW version
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 07a08b13b3bc65abe295557d1dc2609e7f4afc45 ]
dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should
return the maximum available credits as supported by HW.
Set maximum credits before device probing by checking HW version.
Fixes: b66a418d2ad3 ("event/dlb2: add v2.5 probe")
Cc: stable at dpdk.org
Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
---
drivers/event/dlb2/pf/dlb2_pf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/event/dlb2/pf/dlb2_pf.c b/drivers/event/dlb2/pf/dlb2_pf.c
index 3ce8178135..498413295d 100644
--- a/drivers/event/dlb2/pf/dlb2_pf.c
+++ b/drivers/event/dlb2/pf/dlb2_pf.c
@@ -729,6 +729,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev)
if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
dlb2 = dlb2_pmd_priv(eventdev); /* rte_zmalloc_socket mem */
dlb2->version = DLB2_HW_DEVICE_FROM_PCI_ID(pci_dev);
+ if (dlb2->version == DLB2_HW_V2_5)
+ dlb2_args.max_num_events = DLB2_MAX_NUM_CREDITS(DLB2_HW_V2_5);
/* Were we invoked with runtime parameters? */
if (pci_dev->device.devargs) {
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-07-30 22:50:04.119670578 +0800
+++ 0016-event-dlb2-fix-default-credits-based-on-HW-version.patch 2025-07-30 22:50:03.028756723 +0800
@@ -1 +1 @@
-From 07a08b13b3bc65abe295557d1dc2609e7f4afc45 Mon Sep 17 00:00:00 2001
+From 580f1da8b9fd217d19271c4cdd62273a37866a4d Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 07a08b13b3bc65abe295557d1dc2609e7f4afc45 ]
@@ -20 +23 @@
-index 15a06bee4f..edcdfb319f 100644
+index 3ce8178135..498413295d 100644
@@ -23 +26 @@
-@@ -789,6 +789,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev)
+@@ -729,6 +729,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev)
More information about the stable
mailing list