---
name: "rte_tm_wred_params"
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_tm_wred_params"
---

# rte\_tm\_wred\_params(3)

## NAME

rte\_tm\_wred\_params

## SYNOPSIS

`#include <rte_tm.h>`

### Data Fields

struct **rte\_tm\_red\_params** **red\_params** \[**RTE\_COLORS**\]\
 int **packet\_mode**\

## Detailed Description

Weighted RED (WRED) profile

Multiple WRED contexts can share the same WRED profile. Each leaf node with WRED enabled as its congestion management mode has zero or one private WRED context (only one leaf node using it) and/or zero, one or several shared WRED contexts (multiple leaf nodes use the same WRED context). A private WRED context is used to perform congestion management for a single leaf node, while a shared WRED context is used to perform congestion management for a group of leaf nodes.

**See also**

struct **rte\_tm\_capabilities::cman\_wred\_packet\_mode\_supported**

struct **rte\_tm\_capabilities::cman\_wred\_byte\_mode\_supported**

Definition at line **994** of file **rte\_tm.h**.

## Field Documentation

### struct rte\_tm\_red\_params red\_params\[RTE\_COLORS\]

One set of RED parameters per packet color

Definition at line **996** of file **rte\_tm.h**.

### int packet\_mode

When non-zero, the *min\_th* and *max\_th* thresholds are specified in packets (WRED packet mode). When zero, the *min\_th* and *max\_th* thresholds are specified in bytes (WRED byte mode)

Definition at line **1002** of file **rte\_tm.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
