rte_swx_ct...field_info(3)
β¨ NAME β¨
rte_swx_ctl_table_match_field_info β bestie, this is the little struct that holds the tea on one single table match field π
This page lives in the Library Functions Manual section of the rte_swx_ct...field_info(3) man family, and it's literally just one struct's glow-up. Let's get into it π«Ά
π¦ SYNOPSIS π¦
#include <rte_swx_ctl.h>
π Data Fields
enum rte_swx_table_match_typematch_typeintis_headeruint32_tn_bitsuint32_toffset
π Detailed Description π
Table match field info. That's it, that's the whole vibe β¨
Okay but here's the lowkey iconic part: if (n_bits, offset) are known for all the match fields of the table, then the table (key_offset, key_size, key_mask0) can be computed. Like, the whole key situation just falls out of having these little numbers. It's giving main character energy fr fr π₯
Definition at line 273 of file rte_swx_ctl.h.
πΈ Field Documentation πΈ
π enum rte_swx_table_match_type match_type
Match type of the current match field, periodt.
Definition at line 275 of file rte_swx_ctl.h.
π int is_header
Non-zero (true) when the current match field is part of a registered header, zero (false) when it is part of the registered meta-data. So basically: is it a header or is it meta-data, bestie, there is no third option π
Definition at line 280 of file rte_swx_ctl.h.
π¦ uint32_t n_bits
Match field size (in bits). Yes, bits. Not bytes. Don't do bytes, that's not the move π
Definition at line 283 of file rte_swx_ctl.h.
β uint32_t offset
Match field offset within its parent struct β and the parent struct is one of the headers or the meta-data, depending on which one this field belongs to. iykyk π
Definition at line 288 of file rte_swx_ctl.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. So no human hand-wrote this bad boy β the robot did it and honestly? It ate. π€π
Okay bestie, that's the whole page, no cap π This was DPDK Version 25.11.3, filed under rte_swx_ct...field_info(3) β go forth and compute those keys, you've got this π§π
π¦ 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