RTE_SWX_CTL_LEARNER_INFO(3)

πŸ’– rte_swx_ctl_learner_info πŸ’–

okay bestie, so this one lives in the rte_swx_ctl manual (section 3, the library functions girly) and honestly? it's giving struct energy. no functions here, just vibes and fields. it's literally a little info box about a learner table. that's it, that's the whole page. slay. ✨


🌸 SYNOPSIS 🌸

#include <rte_swx_ctl.h>

πŸŽ€ Data Fields

  • char name [RTE_SWX_CTL_NAME_SIZE]
  • uint32_t n_match_fields
  • uint32_t n_actions
  • int default_action_is_const
  • uint32_t size
  • uint32_t n_key_timeouts

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

so like, this is the Learner table info. it's a struct that holds the tea about a learner table. that's the vibe check, periodt.

πŸ’… for the record, this is defined at line 542 of the file rte_swx_ctl.h.

πŸ‘‘ FIELD DOCUMENTATION πŸ‘‘

🌟 char name[RTE_SWX_CTL_NAME_SIZE]

the learner table's name. iconic. it's got RTE_SWX_CTL_NAME_SIZE to work with, so no need to stress about the length (well β€” it's a fixed-size char array, so do stress a lil bit, but that's a you problem 🫢).

Defined at line 544 of the file rte_swx_ctl.h.

🌟 uint32_t n_match_fields

how many match fields there are. counting them is literally this field's whole job. no cap.

Defined at line 547 of the file rte_swx_ctl.h.

🌟 uint32_t n_actions

number of actions. ated. πŸ”₯

Defined at line 550 of the file rte_swx_ctl.h.

🌟 int default_action_is_const

okay this one's important, listen up πŸ“’ β€” non-zero (true) means the default action is constant, so bestie, you cannot change it. zero (false) means the default action is not constant, so you can change it. that's the whole personality of this field.

Defined at line 556 of the file rte_swx_ctl.h.

🌟 uint32_t size

the learner table's size parameter. yes, it is just named size. very main character, very minimal, we love her for that. 🌈

Defined at line 559 of the file rte_swx_ctl.h.

🌟 uint32_t n_key_timeouts

the number of possible key timeout values. so many options, so little time (literally). ⏳✨

Defined at line 562 of the file rte_swx_ctl.h.

✍️ AUTHOR ✍️

generated automatically by Doxygen for DPDK, straight from the source code. not a human author in sight, it just spawned like that. 😭


and that's the whole page, bestie! πŸŽ€ this lil cutie is part of DPDK, Version 25.11.3. go forth and counter, iykyk πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from