---
name: "rte_comp_compress_xform"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_comp_compress_xform"
---

# rte\_comp\_compress\_xform(3)

## NAME

rte\_comp\_compress\_xform

## 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

Definition at line **285** of file **rte\_comp.h**.

## Field Documentation

### enum rte\_comp\_algorithm algo

Algorithm to use for compress operation

Definition at line **286** of file **rte\_comp.h**.

### struct rte\_comp\_deflate\_params deflate

Parameters specific to the deflate algorithm

Definition at line **289** of file **rte\_comp.h**.

### struct rte\_comp\_lz4\_params lz4

Parameters specific to the LZ4 algorithm

Definition at line **291** of file **rte\_comp.h**.

### union { ... }

Algorithm specific parameters

### int level

Compression level

Definition at line **294** 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.

Definition at line **296** of file **rte\_comp.h**.

### enum rte\_comp\_checksum\_type chksum

Type of checksum to generate on the uncompressed data

Definition at line **301** 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.

Definition at line **303** of file **rte\_comp.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
