[PATCH 1/2] pdcp: add digest physical address

Radu Nicolau radu.nicolau at intel.com
Tue Dec 2 11:45:50 CET 2025


Set the physical address for digest buffer.

Fixes: a785af14ff79 ("pdcp: add pre and post process for UL")
Cc: stable at dpdk.org

Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
---
 lib/pdcp/pdcp_process.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/pdcp/pdcp_process.c b/lib/pdcp/pdcp_process.c
index 9b9b881124..f55ae3bec0 100644
--- a/lib/pdcp/pdcp_process.c
+++ b/lib/pdcp/pdcp_process.c
@@ -351,6 +351,8 @@ cop_prepare(const struct entity_priv *en_priv, struct rte_mbuf *mb, struct rte_c
 		op->auth.data.length = (pkt_len - RTE_PDCP_MAC_I_LEN) << auth_shift;
 		op->auth.digest.data = rte_pktmbuf_mtod_offset(mb, uint8_t *,
 							       (pkt_len - RTE_PDCP_MAC_I_LEN));
+		op->auth.digest.phys_addr = rte_pktmbuf_iova_offset(mb,
+							       (pkt_len - RTE_PDCP_MAC_I_LEN));
 	}
 
 	__rte_crypto_sym_op_attach_sym_session(op, en_priv->crypto_sess);
-- 
2.50.1



More information about the dev mailing list