RTE_SECURITY_IPSEC_LIFETIME(3)

πŸ’– rte_security_ipsec_lifetime πŸ’–

okay bestie, sit down, hydrate, and let's talk about rte_security_ipsec_lifetime β€” it's a struct from the DPDK Library Functions Manual, and honestly? she's giving us the vibe-check rules for how long an IPsec SA is allowed to keep going 🌸


✨ NAME ✨

rte_security_ipsec_lifetime β€” the little struct that sets the soft and hard lifetime limits for an IPsec SA, so nobody's out here processing packets forever like it's a group chat that never ends πŸ’…


🌈 SYNOPSIS 🌈

#include <rte_security.h>

πŸŽ€ Data Fields

  • uint64_t packets_soft_limit
  • uint64_t bytes_soft_limit
  • uint64_t packets_hard_limit
  • uint64_t bytes_hard_limit

πŸ’œ Detailed Description πŸ’œ

so, this struct is what you use to configure the soft and hard lifetime of an IPsec SA. no cap πŸ’«

the lifetime of an IPsec SA specifies the maximum number of packets or bytes that can be processed. and the moment any hard limit is reached, IPsec operations would start failing β€” like, that's it, the SA is done, pack it up 🫢

the soft limits are the ✨ early-warning besties ✨ β€” you specify them to generate a notification when the SA is approaching those hard limits for lifetime. here's how that plays out:

  • for inline operations, reaching the soft expiry limit would result in raising an eth event for the same πŸ“£
  • for lookaside operations, this would result in a warning returned in rte_crypto_op.aux_flags ⚠️

this whole thing lives at Definition at line 285 of file rte_security.h. iconic placement, truly πŸ‘‘


πŸ¦‹ Field Documentation πŸ¦‹

  • uint64_t packets_soft_limit β€” soft expiry limit, counted in number of packets. Definition at line 286 of file rte_security.h. πŸ“
  • uint64_t bytes_soft_limit β€” soft expiry limit, counted in bytes. Definition at line 288 of file rte_security.h. πŸ“
  • uint64_t packets_hard_limit β€” hard expiry limit, counted in number of packets. Definition at line 290 of file rte_security.h. πŸ’€
  • uint64_t bytes_hard_limit β€” hard expiry limit, counted in bytes. Definition at line 292 of file rte_security.h. πŸ’€
soft = the gentle heads-up. hard = the actual wall. once a hard limit hits, operations fail. periodt. 🚫

🌟 Author 🌟

Generated automatically by Doxygen for DPDK from the source code. yes, the robot wrote it, and honestly it ate 😭✨


and that's the whole page, bestie!! this was pulled straight from the DPDK Version 25.11.3 docs, so go forth, set your limits, and stay hydrated πŸ§šπŸ’–πŸ’…

πŸ“¦ where this page comes from