rte_compressdev(3)
π 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
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms