rte_pmd_cnxk_mempool.h(3)

πŸ’– NAME πŸ’–

rte_pmd_cnxk_mempool.h β€” bestie, this is the header for the Marvell CNXK Mempool PMD's special little helper functions ✨ (it lives in the Library Functions Manual, section 3, iykyk)


🌸 SYNOPSIS 🌸

Okay so before you can use any of this, you gotta pull in the prerequisites, no skipping:

#include <rte_mbuf.h>
#include <rte_mempool.h>

πŸŽ€ Functions

  • __rte_experimental int rte_pmd_cnxk_mempool_mbuf_exchange (struct rte_mbuf *m1, struct rte_mbuf *m2)
  • __rte_experimental int rte_pmd_cnxk_mempool_is_hwpool (struct rte_mempool *mp)
  • __rte_experimental int rte_pmd_cnxk_mempool_range_check_disable (struct rte_mempool *mp)

Detailed Description πŸ‘‘

Marvell CNXK Mempool PMD specific functions.

And fr fr, that's where it lives β€” Definition in file rte_pmd_cnxk_mempool.h.


πŸ¦‹ Function Documentation πŸ¦‹

__rte_experimental int rte_pmd_cnxk_mempool_mbuf_exchange (struct rte_mbuf *m1, struct rte_mbuf *m2)

Not me introducing you to the swap queen πŸ’… β€” this one exchanges mbufs between two mempools.

Parameters

  • m1 β€” First mbuf
  • m2 β€” Second mbuf

Returns

0 on success, a negative errno value otherwise.


__rte_experimental int rte_pmd_cnxk_mempool_is_hwpool (struct rte_mempool *mp)

The vibe check function πŸ” β€” it checks whether a mempool is a hwpool.

Parameters

  • mp β€” Mempool to check.

Returns

1 if mp is a hwpool, 0 otherwise.


__rte_experimental int rte_pmd_cnxk_mempool_range_check_disable (struct rte_mempool *mp)

Turning off the safety rails 😭 β€” this one disables buffer address range check on a mempool.

Parameters

  • mp β€” Mempool to disable range check on.

Returns

0 on success, a negative errno value otherwise.


✨ Author ✨

Generated automatically by Doxygen for DPDK from the source code. So like, not a human author, the robots did this one πŸ€–πŸ’–


And that's the whole page, bestie β€” this manual page is DPDK, Version 25.11.3, and it's giving "generated docs that actually ate." Go forth and mempool responsibly 🫢🌸

πŸ“¦ where this page comes from