RTE_FLOW_ACTION_SET_DSCP(3)
π rte_flow_action_set_dscp
okay bestie, welcome to the rte_flow_action_set_dscp page β it lives in section 3 of the Library Functions Manual, aka the part of the docs where we talk about C functions and not, like, commands you type. no cap.
β¨ NAME β¨
rte_flow_action_set_dscp β that's it, that's the whole name. short. iconic. periodt π
πΈ SYNOPSIS πΈ
#include <rte_flow.h>
that's literally the only include you need, bestie. go off π¦
π Detailed Description π
so RTE_FLOW_ACTION_TYPE_SET_IPV4_DSCP and RTE_FLOW_ACTION_TYPE_SET_IPV6_DSCP are the two actions in question β one for the IPv4 header, one for the IPv6 header, because obviously they couldn't just share one single action, we love diversity π
what they do: they set the DSCP value for the IPv4/IPv6 header. that's the vibe check. π
and here's the detail you absolutely cannot fumble: the DSCP lives in the low 6 bits, and the rest is ignored. like, literally ignored. don't come for those other bits, they are not the moment. π
lowkey important: low 6 bits = DSCP. everything else = not DSCP. the way that the rest is just... ignored. chef's kiss. π«Ά
π fyi, this whole thing is defined at line 3927 of the file rte_flow.h β so if you ever need to go stare at the source directly (main character behavior, honestly), you know exactly where to look. β
π Author π
this page was generated automatically by Doxygen for DPDK from the source code β so like, no human sat down and hand-wrote this masterpiece, the machine did it. slay, i guess. π€β¨
and that's the page, bestie!! π this was DPDK, Version 25.11.3, for rte_flow_action_set_dscp(3) β go forth and set those DSCP values in your low 6 bits only, mwah π bye babes ππ¦π
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms