STRUCT DPSECI_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dpseci_cfg(9) πŸ’…

Okay bestie, welcome to the struct dpseci_cfg(9) page from the Kernel API Manual β€” yes, that's the manual name, it's giving kernel-docs royalty, we love her for it. This is the configuration struct for DPSECI, and she's honestly pretty lowkey but every field matters, so let's get into it 🫢


✨ NAME ✨

struct dpseci_cfg β€” the structure that represents the DPSECI configuration. That's it, that's the whole vibe. Main character energy, minimal words πŸ’…


🌸 SYNOPSIS 🌸

struct dpseci_cfg {
    u32 options;
    u8 num_tx_queues;
    u8 num_rx_queues;
    u8 priorities[DPSECI_MAX_QUEUE_NUM];
 };

Look at her. Iconic. Four members, zero notes. Copy this exactly, please β€” no "fixing" the spacing, no renaming anything, we are not doing that today 😭


πŸ¦‹ Members πŸ¦‹

  • options β€” literally any combination of these flags: DPSECI_OPT_HAS_CG. That's the one listed, that's the one you get ✨
  • num_tx_queues β€” the num of queues towards the SEC. Sending-side queue count, slay.
  • num_rx_queues β€” the num of queues back from the SEC. Coming back the other way, we love a round trip πŸ’–
  • priorities β€” priorities for the SEC hardware processing πŸ”₯. Each place in the array is the priority of the tx queue towards the SEC. Valid priorities are configured with values 1-8 β€” so 1 through 8, no cap, that's the range, respect it.
ngl bestie, that array is sized DPSECI_MAX_QUEUE_NUM, and each slot maps to a tx queue's priority β€” so the index is doing real work here. Priorities outside 1-8 are not the valid ones, mwah πŸ’‹

🌈 SEE ALSO 🌈

Go read the whole fam, they're all in the kernel file ./drivers/crypto/caam/dpseci.h and honestly they ate:

  • struct dpseci_attr(9)
  • enum dpseci_dest(9)
  • struct dpseci_dest_cfg(9)
  • struct dpseci_rx_queue_cfg(9)
  • struct dpseci_rx_queue_attr(9)
  • struct dpseci_tx_queue_attr(9)
  • struct dpseci_sec_attr(9)
  • enum dpseci_congestion_unit(9)
  • struct dpseci_congestion_notification_cfg(9)

aaaand that's the page bestie, you understood it, you slayed it, periodt πŸŽ€βœ¨

Sign-off szn: this little cutie lives in ./drivers/crypto/caam, and the date on the tin is October 2026. Go forth and configure responsibly πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from