rte_flow_update_age(3)

πŸ’– rte_flow_update_age(3) πŸ’–

okay bestie, welcome to a page from the Library Functions Manual β€” it's rte_flow_update_age, a struct in the DPDK flow family, and she's got main character energy for sure. let's get into it πŸ¦‹


✨ NAME ✨

rte_flow_update_age β€” that's her, that's the name, no notes πŸ’…


🌸 SYNOPSIS 🌸

pull her in with:

#include <rte_flow.h>

πŸŽ€ Data Fields

  • uint32_t reserved:6
  • uint32_t timeout_valid:1
  • uint32_t timeout:24
  • uint32_t touch:1

look at those bitfields living their truth ✨


πŸ¦‹ Detailed Description πŸ¦‹

⚠️ Warning β€” EXPERIMENTAL: this structure may change without prior notice. like, she's in her experimental era and she will reinvent herself, no cap. don't build your whole personality on her staying the same, fr fr.

she's the one behind RTE_FLOW_ACTION_TYPE_AGE πŸ‘‘

what she does: Update indirect AGE action attributes, aka:

  • Timeout can be updated including stop/start action:
+-------------+-------------+------------------------------+
| Old Timeout | New Timeout | Updating                     |
+=============+=============+==============================+
| 0           | positive    | Start aging with new value   |
+-------------+-------------+------------------------------+
| positive    | 0           | Stop aging                   |
+-------------+-------------+------------------------------+
| positive    | positive    | Change timeout to new value  |
+-------------+-------------+------------------------------+

so like: nothing β†’ something = start aging with new value, something β†’ nothing = stop aging, something β†’ something else = change timeout to new value. the glow-up pipeline 🫢

  • sec_since_last_hit can be reset. yes bestie, you can hit the reset button on that one 😭

πŸ“ Definition at line 3425 of file rte_flow.h.


🧚 Field Documentation 🧚

🌈 uint32_t reserved

Reserved, must be zero. like, leave her ALONE, put 0 and move on πŸ’€

πŸ“ Definition at line 3426 of file rte_flow.h.

πŸ’œ uint32_t timeout_valid

The timeout is valid for update. so basically: "hey, the timeout field actually means something right now" βœ…

πŸ“ Definition at line 3427 of file rte_flow.h.

πŸ“ uint32_t timeout

Time in seconds. seconds!! not milliseconds, not vibes, seconds ⏱️

πŸ“ Definition at line 3428 of file rte_flow.h.

⭐ uint32_t touch

Means that aging should assume packet passed the aging. a little nudge, a little "hey girl, a packet came through" tap on the shoulder πŸ’«

πŸ“ Definition at line 3430 of file rte_flow.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. not a human author, a robot did this. she was generated, she's built different, iconic behavior πŸ€–βœ¨


and that's the whole page bestie!! this was DPDK Version 25.11.3 of rte_flow_update_age(3) (the date slot is literally empty, the docs said "we'll fill that in later" and never did 😭). stay experimental, stay zeroed-out in your reserved bits, and go touch someβ€” packets. byeee πŸ’–πŸ’…πŸ¦‹

πŸ“¦ where this page comes from