patch 'compress/zlib: fix UDC checksum' has been queued to stable release 25.11.1

Kevin Traynor ktraynor at redhat.com
Thu Feb 26 14:09:44 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.1

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

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

Thanks.

Kevin

---
>From 007bc41664cfc14db2dabea408e8d73cb89d3655 Mon Sep 17 00:00:00 2001
From: Sameer Vaze <svaze at qti.qualcomm.com>
Date: Tue, 16 Dec 2025 12:36:16 -0700
Subject: [PATCH] compress/zlib: fix UDC checksum

[ upstream commit c92eb504081aa06c16983e0d0935bcadd1f113ca ]

Fixes bugs with casting and checksum calculation for
UDC checksum

Fixes: 0dc314debb22 ("compress/zlib: support dictionaries and PDCP checksum")

Signed-off-by: Sameer Vaze <svaze at qti.qualcomm.com>
Acked-by: Ashish Gupta <ashishg at marvell.com>
---
 drivers/compress/zlib/zlib_pmd.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/compress/zlib/zlib_pmd.c b/drivers/compress/zlib/zlib_pmd.c
index 1d7651dd7d..ed3905484c 100644
--- a/drivers/compress/zlib/zlib_pmd.c
+++ b/drivers/compress/zlib/zlib_pmd.c
@@ -49,10 +49,10 @@ process_zlib_deflate_chksum(struct rte_comp_op *op,
 		}
 
-		dictionary_start = (uint32_t)(*dictionary);
-		dictionary_end = (uint32_t)(*(dictionary + dictionary_len - 4));
+		dictionary_start = *(uint32_t *)dictionary;
+		dictionary_end = *(uint32_t *)(dictionary + dictionary_len - 4);
 		sum = (dictionary_start & BOTTOM_NIBBLE_OF_BYTES_IN_DOUBLE_WORD)
-			+ (dictionary_start & (TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD >> 4))
+			+ ((dictionary_start & TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD) >> 4)
 			+ (dictionary_end & BOTTOM_NIBBLE_OF_BYTES_IN_DOUBLE_WORD)
-			+ (dictionary_end & (TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD >> 4));
+			+ ((dictionary_end & TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD) >> 4);
 
 		op->output_chksum = ~(sum_bytes[0] + sum_bytes[1] + sum_bytes[2] + sum_bytes[3])
@@ -99,10 +99,10 @@ process_zlib_inflate_chksum(struct rte_comp_op *op,
 		}
 
-		dictionary_start = (uint32_t)(*dictionary);
-		dictionary_end = (uint32_t)(*(dictionary + dictionary_len - 4));
+		dictionary_start = *(uint32_t *)dictionary;
+		dictionary_end = *(uint32_t *)(dictionary + dictionary_len - 4);
 		sum = (dictionary_start & BOTTOM_NIBBLE_OF_BYTES_IN_DOUBLE_WORD)
-			+ (dictionary_start & (TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD >> 4))
+			+ ((dictionary_start & TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD) >> 4)
 			+ (dictionary_end & BOTTOM_NIBBLE_OF_BYTES_IN_DOUBLE_WORD)
-			+ (dictionary_end & (TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD >> 4));
+			+ ((dictionary_end & TOP_NIBBLE_OF_BYTE_IN_DOUBLE_WORD) >> 4);
 
 		op->output_chksum = ~(sum_bytes[0] + sum_bytes[1] + sum_bytes[2] + sum_bytes[3])
-- 
2.53.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-02-26 10:16:51.031390417 +0000
+++ 0102-compress-zlib-fix-UDC-checksum.patch	2026-02-26 10:16:47.058544035 +0000
@@ -1 +1 @@
-From c92eb504081aa06c16983e0d0935bcadd1f113ca Mon Sep 17 00:00:00 2001
+From 007bc41664cfc14db2dabea408e8d73cb89d3655 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c92eb504081aa06c16983e0d0935bcadd1f113ca ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list