rte_compressdev(3)

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

πŸ’… rte_compressdev β€” the it girl of DPDK compress devices πŸŽ€

okay so bestie, we're in the Library Functions Manual section and today's main character is rte_compressdev ✨ no cap, this is the struct you want to know if you're doing anything with compression devices in DPDK. she's iconic, she's a little internal, and she's literally defined in a header. let's get into it πŸ’–


🌸 NAME 🌸

rte_compressdev β€” the data structure that's associated with each comp device, periodt. πŸ‘‘


✨ SYNOPSIS ✨

#include <rte_compressdev_internal.h>

πŸ¦‹ Data Fields πŸ¦‹

here's the whole squad that lives inside this struct, in order, no skipping πŸ’…:

compressdev_dequeue_pkt_burst_t dequeue_burst
compressdev_enqueue_pkt_burst_t enqueue_burst
struct rte_compressdev_data * data
struct rte_compressdev_ops * dev_ops
uint64_t feature_flags
struct rte_device * device
__extension__ uint8_t attached: 1

πŸ’œ Detailed Description πŸ’œ

so basically: The data structure associated with each comp device. that's the vibe. one struct per comp device, she holds the whole situation together 🫢

πŸ“ Definition at line 72 of file rte_compressdev_internal.h. write that down bestie, iykyk.

πŸ”₯ Field Documentation πŸ”₯

every single field, broken down, because we don't do vague here πŸ’–

⭐ compressdev_dequeue_pkt_burst_t dequeue_burst

Pointer to PMD receive function. that's the function pointer the PMD uses on the receive side, lowkey essential 😭

πŸ“ Definition at line 73 of file rte_compressdev_internal.h.

⭐ compressdev_enqueue_pkt_burst_t enqueue_burst

Pointer to PMD transmit function. same energy, but transmit side β€” this is the send function pointer fr fr ✨

πŸ“ Definition at line 75 of file rte_compressdev_internal.h.

⭐ struct rte_compressdev_data* data

Pointer to device data. yes, she points at the device's data πŸŽ€

πŸ“ Definition at line 78 of file rte_compressdev_internal.h.

⭐ struct rte_compressdev_ops* dev_ops

Functions exported by PMD. all the ops the PMD hands over live right here πŸ‘‘

πŸ“ Definition at line 80 of file rte_compressdev_internal.h.

⭐ uint64_t feature_flags

Supported features. this is where the device says what she can do β€” highkey important 🌈

πŸ“ Definition at line 82 of file rte_compressdev_internal.h.

⭐ struct rte_device* device

Backing device. the actual device sitting behind all this πŸ¦‹

πŸ“ Definition at line 84 of file rte_compressdev_internal.h.

⭐ __extension__ uint8_t attached

Flag indicating the device is attached. is she attached or is she not β€” this 1-bit field knows πŸ’… (yes, it's __extension__ uint8_t attached: 1, a teeny tiny bitfield, don't come for her)

πŸ“ Definition at line 88 of file rte_compressdev_internal.h.


🧚 Author 🧚

Generated automatically by Doxygen for DPDK from the source code. so like, nobody hand-wrote this, the machines did it 🫢✨


πŸ“ one little reminder before you go: these are internal header details, so don't go treating them like a public API promise, bestie β€” the definition lines are the receipts (lines 72, 73, 75, 78, 80, 82, 84, 88 of rte_compressdev_internal.h).

and that's the page!! πŸ’– brought to you by DPDK, Version 26.03.0 β€” mwah, slay, go forth and compress responsibly πŸŽ€πŸ’…πŸ”₯

πŸ“¦ where this page comes from