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 input rte_crypto_op structure.

Returns

  • The pointer to the related rte_ipsec_session structure.
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 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_ipsec_group structures.
  • num β€” the maximum number of crypto-ops to process.

Returns

  • Number of filled elements in the grp array.
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