---
name: "rte_pdcp_pkt_crypto_group"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_pdcp_group.h"
---

# rte\_pdcp\_pkt\_crypto\_group(3)

Part of [rte\_pdcp\_group.h(3)](/rte_pdcp_group.h/3.md).

## NAME

rte\_pdcp\_group.h

## SYNOPSIS

`#include <rte_common.h>`\
 `#include <rte_crypto.h>`\
 `#include <rte_cryptodev.h>`\

### Data Structures

struct **rte\_pdcp\_group**\

### Functions

static struct **rte\_pdcp\_entity** \* **rte\_pdcp\_en\_from\_cop** (const struct **rte\_crypto\_op** \*cop)\
 static uint16\_t **rte\_pdcp\_pkt\_crypto\_group** (struct **rte\_crypto\_op** \*cop\[\], struct **rte\_mbuf** \*mb\[\], struct **rte\_pdcp\_group** grp\[\], uint16\_t num)\

## Detailed Description

RTE PDCP grouping support. It is not recommended to include this file directly, include \<**rte\_pdcp.h**\> instead. Provides helper functions to process completed crypto-ops and group related packets by sessions they belong to.

Definition in file **rte\_pdcp\_group.h**.

## Function Documentation

### static struct rte\_pdcp\_entity \* rte\_pdcp\_en\_from\_cop (const struct rte\_crypto\_op \* cop)` [inline]`, ` [static]`

**Warning**

**EXPERIMENTAL:** this API may change without prior notice.

Take crypto-op as an input and extract pointer to related PDCP entity.

**Parameters**

*cop* The address of an input **rte\_crypto\_op structure.**

**Returns**

**The pointer to the related rte\_pdcp\_entity structure.**

**Definition at line 50 of file rte\_pdcp\_group.h.**

### static uint16\_t rte\_pdcp\_pkt\_crypto\_group (struct rte\_crypto\_op \* cop\[\], struct rte\_mbuf \* mb\[\], struct rte\_pdcp\_group grp\[\], uint16\_t num)` [inline]`, ` [static]`

**Warning**

**EXPERIMENTAL: this API may change without prior notice.**

**Take as input completed crypto ops, extract related mbufs and group them by rte\_pdcp\_entity they belong to. Mbuf for which the crypto operation has failed would be flagged using** *RTE\_MBUF\_F\_RX\_SEC\_OFFLOAD\_FAILED* **flag in rte\_mbuf.ol\_flags. The crypto\_ops would be freed after the grouping.**

**Note that application must ensure only crypto-ops prepared by lib\_pdcp is provided back to**

**See also**

**rte\_pdcp\_pkt\_crypto\_group().**

**Parameters**

*cop* **The address of an array of** *num* **pointers to the input rte\_crypto\_op structures.** \
 *mb* **The address of an array of** *num* **pointers to output rte\_mbuf structures.** \
 *grp* **The address of an array of** *num* **to output rte\_pdcp\_group structures.** \
 *num* **The maximum number of crypto-ops to process.**

**Returns**

**Number of filled elements in** *grp* **array.**

**Definition at line 83 of file rte\_pdcp\_group.h.**

## Author

**Generated automatically by Doxygen for DPDK from the source code.**
