rte_comp_compress_xform(3)
π
rte_comp_compress_xform β NAME
okay so bestie, this is rte_comp_compress_xform π β it's a struct from the DPDK Library Functions Manual, and it's literally the setup data for compression. That's the whole vibe. It holds all the config knobs you hand over so a compress operation knows what to do. No cap.
β¨ SYNOPSIS β¨
#include <rte_comp.h>
π Data Fields π
enum rte_comp_algorithm algo
union {
struct rte_comp_deflate_params deflate
struct rte_comp_lz4_params lz4
};
int level
uint8_t window_size
enum rte_comp_checksum_type chksum
enum rte_comp_hash_algorithm hash_algo
π¦ Detailed Description π¦
Setup Data for compression. That's it, that's the whole job β it's the little bundle of settings that tells the compression machinery how you want the thing compressed.
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, bestie β this is the one that decides which algorithm does the actual compressing.
Definition at line 307 of file rte_comp.h. π
π struct rte_comp_deflate_params deflate
Parameters specific to the deflate algorithm. So these knobs only matter when deflate is the algorithm in the hot seat.
Definition at line 310 of file rte_comp.h. π
π struct rte_comp_lz4_params lz4
Parameters specific to the LZ4 algorithm. Same deal, but for LZ4 β its own little parameter corner.
Definition at line 312 of file rte_comp.h. π
π union { ... }
Algorithm specific parameters β the union that holds either the deflate params or the lz4 params, depending on which algorithm you picked. It's giving "one slot, two possible moods". π«Ά
π int level
Compression level. You know how it goes β crank it one way for more squeezing, the other way for more speed.
Definition at line 315 of file rte_comp.h. π
π uint8_t window_size
Base two log value of sliding window to be used. Yes β it's the base two log value, not the raw size, so don't come in here thinking it's bytes, okay?
And here's the caveat you gotta know: if the window size can't be supported by the PMD, then it may fall back to a smaller size. That's the tradeoff β and it's likely to result in a worse compression ratio. π So like, it still works, it's just not gonna squeeze as hard as you wanted.
Definition at line 317 of file rte_comp.h. π
π enum rte_comp_checksum_type chksum
Type of checksum to generate on the uncompressed data. Lowkey important β the checksum is computed over the uncompressed data, not the squeezed version.
Definition at line 322 of file rte_comp.h. π
π enum rte_comp_hash_algorithm hash_algo
Hash algorithm to be used with compress operation. And listen β the hash is always done on plaintext. Always. Periodt. β¨
Definition at line 324 of file rte_comp.h. π
π Author π
Generated automatically by Doxygen for DPDK from the source code. So nobody hand-wrote this bad boy β it's the docs equivalent of a bot that ate, honestly. π€π
πΈ and that's the page, bestie! πΈ This one's brought to you by DPDK, Version 26.03.0, living its best life under the title rte_comp_compress_xform(3). Go compress something iconic πππ¦
π¦ 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