rte_port_r...rag_params(3)

πŸ’– NAME πŸ’–

rte_port_ring_reader_frag_params β€” bestie, this is a struct page, and it's living in the Library Functions Manual section of the man pages (that's the manual name, it's giving section 3 energy ✨).

It's a lil' data structure that holds the params for a ring_reader_ipv4_frag port. Basically the setting sheet you hand over so your ring reader can do IP fragmentation. πŸ¦‹


πŸ“œ SYNOPSIS πŸ“œ

#include <rte_port_frag.h>

✨ Data Fields ✨

struct rte_ring * ring
uint32_t mtu
uint32_t metadata_size
struct rte_mempool * pool_direct
struct rte_mempool * pool_indirect

🌸 Detailed Description 🌸

ring_reader_ipv4_frag port parameters πŸ’… β€” that's the whole vibe.

Definition at line 35 of file rte_port_frag.h.


πŸŽ€ Field Documentation πŸŽ€

struct rte_ring* ring

The underlying single consumer ring that has to be pre-initialized. Like, pre-initialized. Do not come to this struct with an un-initialized ring, bestie, it's not that kind of party πŸ™ˆ.

Definition at line 37 of file rte_port_frag.h.


uint32_t mtu

Maximum Transfer Unit (MTU). It's the maximum IP packet size, measured in bytes. πŸ“

Definition at line 40 of file rte_port_frag.h.


uint32_t metadata_size

Size of the application dependent meta-data that gets stored per each input packet. And here's the part that matters: that meta-data has to be copied to each of the fragments originating from the same input IP datagram. So every fragment gets its own copy, no sharing, no cap 🫢.

Definition at line 45 of file rte_port_frag.h.


struct rte_mempool* pool_direct

A pre-initialized buffer pool used for allocating the direct buffers for the output fragments. ✨

Definition at line 49 of file rte_port_frag.h.


struct rte_mempool* pool_indirect

A pre-initialized buffer pool used for allocating the indirect buffers for the output fragments. πŸ¦‹

Definition at line 53 of file rte_port_frag.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. (Not a human author, just the Doxygen machine doing its thing, and honestly? iconic ⭐)


And that's the whole page, bestie πŸ’œ β€” this one came courtesy of DPDK, Version 25.11.3. Slay, go fragment some packets, ily, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from