rte_ipsec_group.h(3)
πΈ rte_ipsec_group.h πΈ
okay bestie come CLOSER π this is the manual page for rte_ipsec_group.h, page 3 of the Library Functions Manual, and it's literally all about getting your completed crypto-ops sorted out and grouped up. no cap. let's go π¦
β¨ NAME β¨
rte_ipsec_group.h β that's it, that's the name, short and iconic π
π SYNOPSIS π
π Data Structures
struct rte_ipsec_groupβ the group struct itself, the whole point of the file π
π Functions
static struct rte_ipsec_session * rte_ipsec_ses_from_crypto (const
struct rte_crypto_op *cop)
static uint16_t rte_ipsec_pkt_crypto_group (const struct rte_crypto_op
*cop[], struct rte_mbuf *mb[], struct rte_ipsec_group grp[],
uint16_t num)
π Detailed Description π
RTE IPsec support. π«Ά
okay so listen β it is not recommended to include this file directly, bestie, don't be chaotic π you include <rte_ipsec.h> instead. periodt.
This file contains helper functions that process your completed crypto-ops and group all the related packets by the sessions they belong to. it's giving organizer energy, it's giving "I alphabetized my bookshelf" β¨
Definition in file rte_ipsec_group.h.
π Function Documentation π
π§ struct rte_ipsec_session * rte_ipsec_ses_from_crypto (const struct rte_crypto_op * cop) [inline], [static]
Take a crypto-op as an input and extract a pointer to the related ipsec session. one in, one out, clean and simple π
Parameters
copβ the address of an inputrte_crypto_opstructure.
Returns
- The pointer to the related
rte_ipsec_sessionstructure.
Definition at line 45 of file rte_ipsec_group.h.
π¦ uint16_t rte_ipsec_pkt_crypto_group (const struct rte_crypto_op * cop[], struct rte_mbuf * mb[], struct rte_ipsec_group grp[], uint16_t num) [inline], [static]
Take as input completed crypto ops, extract the related mbufs, and group them by the rte_ipsec_session they belong to. this is the main character function fr fr π
For an mbuf whose crypto-op wasn't completed successfully, RTE_MBUF_F_RX_SEC_OFFLOAD_FAILED will be raised in ol_flags. β οΈ
Heads up bestie: mbufs with an undetermined SA (session-less) are not freed by the function β instead they get placed beyond the mbufs for the last valid group. it is a user responsibility to handle them further. don't forget about them, they will simply be there vibing π
Parameters
copβ the address of an array ofnumpointers to the inputrte_crypto_opstructures.mbβ the address of an array ofnumpointers to outputrte_mbufstructures.grpβ the address of an array ofnumto outputrte_ipsec_groupstructures.numβ the maximum number of crypto-ops to process.
Returns
- Number of filled elements in the
grparray.
Definition at line 82 of file rte_ipsec_group.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. no human hand wrote this, the robots ate π
and that's the whole page, bestie!! πΈ stay slay, and remember β this was DPDK Version 25.11.3, page rte_ipsec_group.h(3). mwah ππβ¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms