patch 'event/dlb2: fix QID depth xstat' has been queued to stable release 23.11.5
Xueming Li
xuemingl at nvidia.com
Wed Jul 30 09:10:26 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=3a34eb71cd5e8f5c075586e714856e13b79c0a32
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 3a34eb71cd5e8f5c075586e714856e13b79c0a32 Mon Sep 17 00:00:00 2001
From: Pravin Pathak <pravin.pathak at intel.com>
Date: Wed, 18 Jun 2025 23:03:15 -0500
Subject: [PATCH] event/dlb2: fix QID depth xstat
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 9891a50af0693ffef8471fdb1fb09ff8799c39f6 ]
update QID depth xstats counter in vector dequeue path
Fixes: 000a7b8e7582 ("event/dlb2: optimize dequeue operation")
Signed-off-by: Pravin Pathak <pravin.pathak at intel.com>
---
drivers/event/dlb2/dlb2.c | 8 ++++++++
drivers/event/dlb2/rte_pmd_dlb2.h | 6 ++++++
2 files changed, 14 insertions(+)
diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c
index fc709d699f..181c2c79d7 100644
--- a/drivers/event/dlb2/dlb2.c
+++ b/drivers/event/dlb2/dlb2.c
@@ -3828,12 +3828,16 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
_mm_storeu_si128((__m128i *)&events[3], v_ev_3);
DLB2_INC_STAT(qm_port->ev_port->stats.rx_sched_cnt[hw_sched3],
1);
+ DLB2_INC_STAT(qm_port->ev_port->stats.queue[ev_qid3].\
+ qid_depth[RTE_PMD_DLB2_GET_QID_DEPTH(&events[3])], 1);
/* fallthrough */
case 3:
v_ev_2 = _mm_unpacklo_epi64(v_unpk_ev_23, v_qe_2);
_mm_storeu_si128((__m128i *)&events[2], v_ev_2);
DLB2_INC_STAT(qm_port->ev_port->stats.rx_sched_cnt[hw_sched2],
1);
+ DLB2_INC_STAT(qm_port->ev_port->stats.queue[ev_qid2].\
+ qid_depth[RTE_PMD_DLB2_GET_QID_DEPTH(&events[2])], 1);
/* fallthrough */
case 2:
v_ev_1 = _mm_blend_epi16(v_unpk_ev_01, v_qe_1, 0x0F);
@@ -3841,12 +3845,16 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
_mm_storeu_si128((__m128i *)&events[1], v_ev_1);
DLB2_INC_STAT(qm_port->ev_port->stats.rx_sched_cnt[hw_sched1],
1);
+ DLB2_INC_STAT(qm_port->ev_port->stats.queue[ev_qid1].\
+ qid_depth[RTE_PMD_DLB2_GET_QID_DEPTH(&events[1])], 1);
/* fallthrough */
case 1:
v_ev_0 = _mm_unpacklo_epi64(v_unpk_ev_01, v_qe_0);
_mm_storeu_si128((__m128i *)&events[0], v_ev_0);
DLB2_INC_STAT(qm_port->ev_port->stats.rx_sched_cnt[hw_sched0],
1);
+ DLB2_INC_STAT(qm_port->ev_port->stats.queue[ev_qid0].\
+ qid_depth[RTE_PMD_DLB2_GET_QID_DEPTH(&events[0])], 1);
}
}
diff --git a/drivers/event/dlb2/rte_pmd_dlb2.h b/drivers/event/dlb2/rte_pmd_dlb2.h
index 334c6c356d..45a224df04 100644
--- a/drivers/event/dlb2/rte_pmd_dlb2.h
+++ b/drivers/event/dlb2/rte_pmd_dlb2.h
@@ -19,6 +19,12 @@ extern "C" {
#include <rte_compat.h>
+/**
+ * Macro function to get QID depth of rte_event metadata.
+ * Currently lower 2 bits of 'rsvd' field are used to store QID depth.
+ */
+ #define RTE_PMD_DLB2_GET_QID_DEPTH(x) ((x)->rsvd & 0x3)
+
/**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-07-30 15:02:13.272438837 +0800
+++ 0015-event-dlb2-fix-QID-depth-xstat.patch 2025-07-30 15:02:12.801018824 +0800
@@ -1 +1 @@
-From 9891a50af0693ffef8471fdb1fb09ff8799c39f6 Mon Sep 17 00:00:00 2001
+From 3a34eb71cd5e8f5c075586e714856e13b79c0a32 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 9891a50af0693ffef8471fdb1fb09ff8799c39f6 ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org
@@ -13,2 +15,3 @@
- drivers/event/dlb2/dlb2.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
+ drivers/event/dlb2/dlb2.c | 8 ++++++++
+ drivers/event/dlb2/rte_pmd_dlb2.h | 6 ++++++
+ 2 files changed, 14 insertions(+)
@@ -17 +20 @@
-index f9bdfb3503..fd8cc70f3c 100644
+index fc709d699f..181c2c79d7 100644
@@ -20 +23 @@
-@@ -4145,6 +4145,8 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
+@@ -3828,12 +3828,16 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
@@ -29 +31,0 @@
-@@ -4152,6 +4154,8 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
@@ -38 +40 @@
-@@ -4160,6 +4164,8 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
+@@ -3841,12 +3845,16 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
@@ -47 +48,0 @@
-@@ -4167,6 +4173,8 @@ _process_deq_qes_vec_impl(struct dlb2_port *qm_port,
@@ -54 +54,0 @@
- qm_port->reorder_id += valid_events;
@@ -55,0 +56,18 @@
+
+diff --git a/drivers/event/dlb2/rte_pmd_dlb2.h b/drivers/event/dlb2/rte_pmd_dlb2.h
+index 334c6c356d..45a224df04 100644
+--- a/drivers/event/dlb2/rte_pmd_dlb2.h
++++ b/drivers/event/dlb2/rte_pmd_dlb2.h
+@@ -19,6 +19,12 @@ extern "C" {
+
+ #include <rte_compat.h>
+
++/**
++ * Macro function to get QID depth of rte_event metadata.
++ * Currently lower 2 bits of 'rsvd' field are used to store QID depth.
++ */
++ #define RTE_PMD_DLB2_GET_QID_DEPTH(x) ((x)->rsvd & 0x3)
++
+ /**
+ * @warning
+ * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
More information about the stable
mailing list