RTE_EVENT_CRYPTO_ADAPTER_RUNTIME_PARAMS(3)

πŸ’– NAME πŸ’–

rte_event_crypto_adapter_runtime_params β€” bestie, this is the struct that holds the runtime configuration parameters for the crypto adapter. That's it, that's the whole job. πŸ‘‘


✨ SYNOPSIS ✨

#include <rte_event_crypto_adapter.h>

🌸 Data Fields

uint32_t max_nb
uint32_t rsvd [15]

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

Adapter runtime configuration parameters. πŸ’…

Little lowkey flex: this struct is defined at line 262 of the file rte_event_crypto_adapter.h. No cap. πŸ“

πŸŽ€ FIELD DOCUMENTATION πŸŽ€

⭐ uint32_t max_nb

Okay so this one is the main character. πŸ’– The adapter can return early if it has processed at least max_nb crypto ops. But β€” and this is important, bestie β€” that is not treated as a requirement. Batching may cause the adapter to process more than max_nb crypto ops. So it's giving "goal, not rule," fr fr. πŸ™ˆ

Here's who sets it, and how:

  • rte_event_crypto_adapter_create() configures the adapter with the default value of max_nb.
  • rte_event_crypto_adapter_create_ext() configures the adapter with a user provided value of max_nb, through the rte_event_crypto_adapter_conf::max_nb parameter.
  • rte_event_cryptoadapter_runtime_params_set() lets you re-configure max_nb during runtime (after adding at least one queue pair). ✨

And the fine print, because there's always fine print: this is valid for the devices without RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD or RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW capability. 🫢

πŸ“ Definition at line 263 of file rte_event_crypto_adapter.h.

🧚 uint32_t rsvd[15]

Reserved fields for future expansion. That's the whole vibe β€” they're just sitting there, iconic, holding space for whatever the future of DPDK decides to do. πŸ‘‘

πŸ“ Definition at line 280 of file rte_event_crypto_adapter.h.

🌈 AUTHOR 🌈

Generated automatically by Doxygen for DPDK from the source code. Not a human typing this with their own two hands, just so you know. πŸ’€


okay that's the whole page bestie, and for the cute little sign-off: this gorgeous thing comes to you from DPDK, Version 25.11.3, and it's the rte_event_...time_params(3) page from the Library Functions Manual. slay, go set your max_nb. πŸ’…πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from