rte_tm_wred_params(3)

πŸ’– rte_tm_wred_params πŸ’–

okay bestie, gather round, because we're doing a struct today and honestly? it's giving congestion-management icon. this is from the DPDK library functions manual, and it's literally called rte_tm_wred_params. yes it comes from rte_tm.h, yes you're gonna need it if you're messing with traffic management, no you cannot skip it. let's go πŸ¦‹


✨ NAME ✨

rte_tm_wred_params β€” the struct that holds your Weighted RED (WRED) profile, periodt πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_tm.h>

πŸŽ€ Data Fields

  • struct rte_tm_red_params red_params [RTE_COLORS]
  • int packet_mode

πŸ‘‘ DESCRIPTION πŸ‘‘

so this whole thing is the Weighted RED (WRED) profile, and here's the tea:

multiple WRED contexts can share the same WRED profile. no gatekeeping, they just share. πŸ”₯

every leaf node that has WRED enabled as its congestion management mode has zero or one private WRED context (aka only one leaf node using it) and/or zero, one or several shared WRED contexts (aka multiple leaf nodes use the same WRED context).

  • a private WRED context does congestion management for a single leaf node, just the one, main character behavior honestly
  • a shared WRED context does congestion management for a whole group of leaf nodes, very group-chat of it 🫢

🧚 See also

  • struct rte_tm_capabilities::cman_wred_packet_mode_supported
  • struct rte_tm_capabilities::cman_wred_byte_mode_supported
lowkey important note: this is defined at line 994 of file rte_tm.h. remember that, it might come up. ✨

πŸ’œ FIELD DOCUMENTATION πŸ’œ

🌈 struct rte_tm_red_params red_params[RTE_COLORS]

one set of RED parameters per packet color. that's it, that's the whole vibe β€” one per color. 🎨

defined at line 996 of file rte_tm.h

⭐ int packet_mode

okay so this one is a little switch and it changes everything about how your thresholds are counted, so pay attention bestie 😭

  • when packet_mode is non-zero, the min_th and max_th thresholds are specified in packets β€” that's WRED packet mode
  • when packet_mode is zero, the min_th and max_th thresholds are specified in bytes β€” that's WRED byte mode

no in-between, no "oh it's probably fine", it's literally just which unit your thresholds are living in. pick wisely. πŸ’€

defined at line 1002 of file rte_tm.h

πŸ¦‹ AUTHOR πŸ¦‹

generated automatically by Doxygen for DPDK from the source code. yes, a robot wrote this, and the robot ate. πŸ€–βœ¨


alright that's the whole page, you're officially educated on rte_tm_wred_params and i'm so proud of you πŸ’– this was DPDK, Version 25.11.3, and you read the whole thing which is honestly iconic of you. go forth and configure your thresholds correctly, bestie. not me being obsessed with a WRED profile. πŸŽ€πŸŒˆ

slay πŸ’…

πŸ“¦ where this page comes from