patch 'event/dlb2: fix default credits based on HW version' has been queued to stable release 22.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jun 30 14:25:52 CEST 2025


Hi,

FYI, your patch has been queued to stable release 22.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/02/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://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/4f11c905afb974890cbce23bb90e8a9114971317

Thanks.

Luca Boccassi

---
>From 4f11c905afb974890cbce23bb90e8a9114971317 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

[ 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")

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 e585861254..8ff3cf91cd 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.47.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-06-30 13:21:22.587480769 +0100
+++ 0022-event-dlb2-fix-default-credits-based-on-HW-version.patch	2025-06-30 13:21:21.767057807 +0100
@@ -1 +1 @@
-From 07a08b13b3bc65abe295557d1dc2609e7f4afc45 Mon Sep 17 00:00:00 2001
+From 4f11c905afb974890cbce23bb90e8a9114971317 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 07a08b13b3bc65abe295557d1dc2609e7f4afc45 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 15a06bee4f..edcdfb319f 100644
+index e585861254..8ff3cf91cd 100644
@@ -23 +24 @@
-@@ -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