rte_tm_node_params(3)
π NAME π
okay bestie, this is rte_tm_node_params(3) from the Library Functions Manual β the actual name is rte_tm_node_params, and it's the node parameters struct situation π
β¨
β¨ SYNOPSIS β¨
#include <rte_tm.h>
π¦ Data Fields π¦
these are the fields listed right up top, no cap:
uint32_t shaper_profile_id
uint32_t * shared_shaper_id
uint32_t n_shared_shapers
uint64_t stats_mask
the full field-by-field tea is down in Field Documentation, keep scrolling π«Ά
π« Detailed Description π«
Node parameters β that's the whole vibe.
So each non-leaf node has multiple inputs (its children nodes) and a single output (which is the input to its parent node). It arbitrates its inputs using Strict Priority (SP) and Weighted Fair Queuing (WFQ) algorithms to schedule input packets to its output while observing its shaping (rate limiting) constraints. it's giving traffic manager main character energy π
Algorithms like Weighted Round Robin (WRR), Byte-level WRR, Deficit WRR (DWRR), etc. are considered approximations of the WFQ ideal and are assimilated to WFQ β although there might be an associated implementation-dependent trade-off on accuracy, performance and resource usage. so like, same energy but the implementation gets to decide the trade-off π
Children nodes with different priorities are scheduled using the SP algorithm based on their priority, with zero (0) as the highest priority. Children with the same priority are scheduled using the WFQ algorithm according to their weights. The WFQ weight of a given child node is relative to the sum of the weights of all its sibling nodes that have the same priority, with one (1) as the lowest weight. For each SP priority, the WFQ weight mode can be set as either byte-based or packet-based. periodt π
Each leaf node sits on top of a Tx queue of the current Ethernet port. Hence, the leaf nodes are predefined, with their node IDs set to 0 .. (N-1), where N is the number of Tx queues configured for the current Ethernet port. The non-leaf nodes have their IDs generated by the application. yep, leaf nodes are built different π
Definition at line 1092 of file rte_tm.h.
π§ Field Documentation π§
π uint32_t shaper_profile_id π
Shaper profile for the private shaper. The absence of the private shaper for the current node is indicated by setting this parameter to RTE_TM_SHAPER_PROFILE_ID_NONE.
Definition at line 1097 of file rte_tm.h.
π¦ uint32_t* shared_shaper_id π¦
User allocated array of valid shared shaper IDs.
Definition at line 1100 of file rte_tm.h.
πΈ uint32_t n_shared_shapers πΈ
Number of shared shaper IDs in the shared_shaper_id array.
Definition at line 1103 of file rte_tm.h.
β int* wfq_weight_mode β
WFQ weight mode for each SP priority. When NULL, it indicates that WFQ is to be used for all priorities. When non-NULL, it points to a pre-allocated array of n_sp_priorities values, with non-zero value for byte-mode and zero for packet-mode.
π See also
struct rte_tm_node_capabilities::sched_wfq_packet_mode_supportedstruct rte_tm_node_capabilities::sched_wfq_byte_mode_supported
Definition at line 1116 of file rte_tm.h.
π uint32_t n_sp_priorities π
Number of SP priorities.
Definition at line 1119 of file rte_tm.h.
π struct { ... } nonleaf π
Parameters only valid for non-leaf nodes.
π«Ά enum rte_tm_cman_mode cman π«Ά
Congestion management mode
Definition at line 1125 of file rte_tm.h.
π₯ uint32_t wred_profile_id π₯
WRED profile for private WRED context. The absence of a private WRED context for the current leaf node is indicated by value RTE_TM_WRED_PROFILE_ID_NONE.
Definition at line 1136 of file rte_tm.h.
π uint32_t* shared_wred_context_id π
User allocated array of shared WRED context IDs. When set to NULL, it indicates that the current leaf node should not currently be part of any shared WRED contexts.
Definition at line 1143 of file rte_tm.h.
π uint32_t n_shared_wred_contexts π
Number of elements in the shared_wred_context_id array. Only valid when shared_wred_context_id is non-NULL, in which case it should be non-zero.
Definition at line 1150 of file rte_tm.h.
π§ struct { ... } wred π§
WRED parameters (only valid when cman is set to WRED).
π struct { ... } leaf π
Parameters only valid for leaf nodes.
π uint64_t stats_mask π
Mask of statistics counter types to be enabled for this node. This needs to be a subset of the statistics counter types available for the current node. Any statistics counter type not included in this set is to be disabled for the current node.
π See also
enum rte_tm_stats_type
Definition at line 1161 of file rte_tm.h.
βοΈ Author βοΈ
Generated automatically by Doxygen for DPDK from the source code.
mwah π β this iconic page is from DPDK, Version 26.03.0, and the footer is literally that source/version line (no separate date shown on this one, bestie π). rte_tm_node_params(3) out π
β¨
π¦ 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