rte_swx_table_ops(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

✨ rte_swx_table_ops ✨

Okay bestie, so this one is a page from the DPDK library manual, section 3 (library functions) β€” and it's literally just the table operations struct. Like, it's a bundle of function pointers that a table implementation hands over so the rest of the world can poke at it πŸ’…. No cap, that's the whole vibe.


🌸 NAME 🌸

rte_swx_table_ops β€” the struct that holds all the table operation callbacks. Periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_swx_table.h>

πŸŽ€ Data Fields πŸŽ€

  • rte_swx_table_footprint_get_t footprint_get
  • rte_swx_table_mailbox_size_get_t mailbox_size_get
  • rte_swx_table_create_t create
  • rte_swx_table_add_t add
  • rte_swx_table_delete_t del
  • rte_swx_table_lookup_t lkp
  • rte_swx_table_free_t free

πŸ’– Detailed Description πŸ’–

It's giving Table operations. That's it, that's the summary 🫢.

Yes queen, the struct is defined at line 284 of file rte_swx_table.h β€” go look, it's right there.

πŸ‘‘ Field Documentation πŸ‘‘

Okay so here's the breakdown of every single field, one by one, no skipping, we don't do that here 😌

🧚 rte_swx_table_footprint_get_t footprint_get

Table memory footprint get. Set it to NULL when it's not supported, simple as that ✨

Defined at line 286 of file rte_swx_table.h.

πŸ“ rte_swx_table_mailbox_size_get_t mailbox_size_get

Table mailbox size get. When it's NULL, the mailbox size is 0 β€” lowkey convenient πŸŽ€

Defined at line 289 of file rte_swx_table.h.

πŸ”₯ rte_swx_table_create_t create

Table create. This one must be non-NULL β€” no create, no table, bestie, it's non-negotiable πŸ’€

Defined at line 292 of file rte_swx_table.h.

🌈 rte_swx_table_add_t add

Incremental table entry add. Set it to NULL when incremental add isn't supported. And then? 😭 The existing table has to be destroyed and a brand new table built from scratch with the new entry included. Full reset energy, ngl.

Defined at line 298 of file rte_swx_table.h.

⭐ rte_swx_table_delete_t del

Incremental table entry delete. Same deal β€” set it to NULL when incremental delete isn't supported, and in that case the existing table has to be destroyed and a whole new table built from scratch with the entry excluded πŸ™ˆ. Build it again from zero, that's the assignment.

Defined at line 304 of file rte_swx_table.h.

πŸ¦‹ rte_swx_table_lookup_t lkp

Table lookup. Must be non-NULL β€” like, you gotta be able to look stuff up, obviously πŸ’…

Defined at line 307 of file rte_swx_table.h.

πŸ’œ rte_swx_table_free_t free

Table free. Must be non-NULL too. Memory doesn't free itself, bestie ✨

Defined at line 310 of file rte_swx_table.h.

🌸 Author 🌸

Generated automatically by Doxygen for DPDK from the source code. Not a human, just a very diligent little doc generator doing its thing 🫢.


πŸ’– And that's the whole page! Sending you off with the official sign-off from the footer: this is DPDK, Version 26.03.0, page rte_swx_table_ops(3). Slay, go build some tables πŸŽ€βœ¨
πŸ“¦ where this page comes from