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_type match_type
  • int is_header
  • uint32_t n_bits
  • uint32_t offset

πŸ’– 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