rte_comp_compress_xform(3)
π NAME π
rte_comp_compress_xform β she's from the Library Functions Manual, and she's the struct that holds all your compression setup data. That's the name, that's the whole name, no subtitle, she doesn't need one. π
β¨ SYNOPSIS β¨
Okay bestie, first things first, you gotta pull her in:
#include <rte_comp.h>
Data Fields (the whole squad, in order):
enum rte_comp_algorithm algo- an anonymous
unionholding the algorithm-specific stuff:
union {
struct rte_comp_deflate_params deflate
struct rte_comp_lz4_params lz4
};
int leveluint8_t window_sizeenum rte_comp_checksum_type chksumenum rte_comp_hash_algorithm hash_algo
π¦ Detailed Description π¦
Setup Data for compression. That's it, that's the whole vibe β this is the struct you fill in so the compression side knows what it's doing. π
Definition at line 306 of file rte_comp.h.
π Field Documentation π
π enum rte_comp_algorithm algo
Algorithm to use for compress operation. Pick your fighter. β¨
Definition at line 307 of file rte_comp.h.
π struct rte_comp_deflate_params deflate
Parameters specific to the deflate algorithm. All the deflate-only details live here, no sharing. π
Definition at line 310 of file rte_comp.h.
π struct rte_comp_lz4_params lz4
Parameters specific to the LZ4 algorithm. Same deal, but make it LZ4. πΈ
Definition at line 312 of file rte_comp.h.
π union { ... }
Algorithm specific parameters. This is the lil union that switches lanes depending on which algo you picked, so it's giving choose your own adventure. π¦
Heads up: this one's the only field in the doc with no "Definition at line" note attached. Not me gatekeeping, that's just how it is. π
π int level
Compression level. Turn it up or keep it chill. π₯
Definition at line 315 of file rte_comp.h.
π uint8_t window_size
Base two log value of sliding window to be used. If window size can't be supported by the PMD then it may fall back to a smaller size. This is likely to result in a worse compression ratio.
So like, if your PMD can't hang with the window you asked for, it lowkey downgrades you, and bestie, the compression ratio will suffer. Not a warning exactly, just the truth. π
Definition at line 317 of file rte_comp.h.
π enum rte_comp_checksum_type chksum
Type of checksum to generate on the uncompressed data. Yes, on the uncompressed data. Read it again, it says what it says. β
Definition at line 322 of file rte_comp.h.
π enum rte_comp_hash_algorithm hash_algo
Hash algorithm to be used with compress operation. Hash is always done on plaintext.
Periodt. Plaintext, always. No sneaky hashing-the-compressed-bytes situation happening here. π
Definition at line 324 of file rte_comp.h.
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. So like, a robot wrote it, but the robot ate. π€β¨
and that's the whole page, bestie β courtesy of DPDK, Version 25.11.3, which is the vibe check this whole thing passed. mwah π
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms