logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rte_pdcp_group.h

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                             rte_pdcp_group.h(3)

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

staticstructrte_pdcp_entity*rte_pdcp_en_from_cop(conststructrte_crypto_op*cop)[inline],[static]WarningEXPERIMENTAL: this API may change without prior notice.

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

       Parameterscop The address of an input rte_crypto_opstructure.Returns
           The pointer to the related rte_pdcp_entitystructure.

       Definition at line 50 of file rte_pdcp_group.h.

   staticuint16_trte_pdcp_pkt_crypto_group(structrte_crypto_op*cop[],structrte_mbuf*mb[],structrte_pdcp_groupgrp[],uint16_tnum)[inline],[static]WarningEXPERIMENTAL: this API may change without prior notice.

       Take as input completed crypto ops, extract related mbufs and group them by rte_pdcp_entitytheybelongto.MbufforwhichthecryptooperationhasfailedwouldbeflaggedusingRTE_MBUF_F_RX_SEC_OFFLOAD_FAILEDflaginrte_mbuf.ol_flags.Thecrypto_opswouldbefreedafterthegrouping.

       Note that application must ensure only crypto-ops prepared by lib_pdcp is provided back to

       Seealsorte_pdcp_pkt_crypto_group().

       Parameterscop The address of an array of num pointers to the input rte_crypto_opstructures.mbTheaddressofanarrayofnumpointerstooutputrte_mbufstructures.grpTheaddressofanarrayofnumtooutputrte_pdcp_groupstructures.numThemaximumnumberofcrypto-opstoprocess.Returns
           Number of filled elements in grp array.

       Definition at line 83 of file rte_pdcp_group.h.

Name

       rte_pdcp_group.h

Synopsis

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

   DataStructures
       struct rte_pdcp_groupFunctions
       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)

See Also