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