rte_swx_ta...ner_params(3)
okay bestie, buckle up π«Ά β this is the rte_swx_ta...ner_params(3) page from the Library Functions Manual, and it's the glow-up guide for the rte_swx_table_learner_params struct. It's giving learner-table creation parameters, and every field is a main character. β¨
π NAME π
rte_swx_table_learner_params
That's the whole name, no cap.
πΈ SYNOPSIS πΈ
#include <rte_swx_table_learner.h>
π Data Fields π
uint32_t key_sizeuint32_t key_offsetuint8_t * key_mask0uint32_t action_data_sizerte_swx_hash_func_t hash_funcuint32_t n_keys_maxuint32_t * key_timeoutuint32_t n_key_timeouts
π¦ Detailed Description π¦
Learner table creation parameters. Lowkey iconic. Definition at line 62 of file rte_swx_table_learner.h.
π Field Documentation π
β¨ uint32_t key_size β¨
Key size in bytes. Must be non-zero. π¨
Definition at line 64 of file rte_swx_table_learner.h.
πΈ uint32_t key_offset πΈ
Offset of the first byte of the key within the key buffer. π
Definition at line 67 of file rte_swx_table_learner.h.
π uint8_t* key_mask0 π
Mask of key_size bytes logically laid over the bytes at positions key_offset .. (key_offset + key_size - 1) of the key buffer in order to specify which bits from the key buffer are part of the key and which ones are not. A bit value of 1 in the key_mask0 means the respective bit in the key buffer is part of the key, while a bit value of 0 means the opposite. A NULL value means that all the bits are part of the key, i.e. the key_mask0 is an all-ones mask. π«Ά
Definition at line 76 of file rte_swx_table_learner.h.
πΎ uint32_t action_data_size πΎ
Maximum size (in bytes) of the action data. The data stored in the table for each entry is equal to action_data_size plus 8 bytes, which are used to store the action ID. π₯
Definition at line 81 of file rte_swx_table_learner.h.
π§ rte_swx_hash_func_t hash_func π§
Hash function. When NULL, the default hash function will be used. β¨
Definition at line 85 of file rte_swx_table_learner.h.
π uint32_t n_keys_max π
Maximum number of keys to be stored in the table together with their associated data. π
Definition at line 88 of file rte_swx_table_learner.h.
β³ uint32_t* key_timeout β³
The set of all possible key timeout values measured in seconds. Each value must be non-zero. Each table key expires and is automatically deleted from the table after this many seconds. π
Definition at line 94 of file rte_swx_table_learner.h.
π¦ uint32_t n_key_timeouts π¦
Number of possible key timeout values present in the key_timeout set. It must be less than or equal to RTE_SWX_TABLE_LEARNER_N_KEY_TIMEOUTS_MAX. π
Definition at line 99 of file rte_swx_table_learner.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. π€ not a human author, bestie β the robots did this one.
okay that's the whole page, periodt π
. Source/version: DPDK, Version 26.03.0. Date: the original footer doesn't list a date, so I'm not inventing one π. The footer title is rte_swx_ta...ner_params(3), and this was the Library Functions Manual vibe. Byeee π¦
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms