rte_acl_field_def(3)
π rte_acl_field_def π
okay bestie so we're in the DPDK Library Functions Manual today and the star of the show is rte_acl_field_def β the struct that literally defines what an ACL rule field looks like. it's giving "small but powerful" and honestly we're obsessed π«Ά
π NAME π
rte_acl_field_def β the ACL field definition struct, periodt β¨
β¨ SYNOPSIS β¨
#include <rte_acl.h>
πΈ Data Fields πΈ
uint8_t typeβ the field typeuint8_t sizeβ how big the field isuint8_t field_indexβ where it sits inside the ruleuint8_t input_indexβ its index into the inputuint32_t offsetβ where it starts in the input buffer
π Detailed Description π
okay so here's the tea β: this struct is the ACL Field definition. every single field in an ACL rule has an associated definition, and this is it. it tells you the kind of field, its size, its offset in the input buffer, the field index, and the input index. literally everything you need to know about that field, no cap π
now the performance bit, bestie, because this part matters π₯ β for performance reasons, the inner loop of the search function is unrolled to process four input bytes at a time. and because of that, the input has to be grouped into sets of 4 consecutive bytes. the loop processes the first input byte as part of the setup, and then all the subsequent bytes have to be in groups of 4 consecutive bytes. that's the rule, iykyk. β
little fact check for the girlies: this whole definition lives at line 52 of file rte_acl.h. remember it, it might come up π
π Field Documentation π
π uint8_t type
this one is the type β and it's an RTE_ACL_FIELD_TYPE_* situation. slay.
definition at line 53 of file rte_acl.h.
π¦ uint8_t size
the size of field β and the valid sizes are 1, 2, 4, or 8. pick one, girl π
definition at line 54 of file rte_acl.h.
π uint8_t field_index
the index of the field inside the rule. that's it, that's the whole vibe.
definition at line 55 of file rte_acl.h.
π§ uint8_t input_index
the input index, ranging from 0-N. yup, N. go off π
definition at line 56 of file rte_acl.h.
β uint32_t offset
the offset to the start of the field. where the field begins, basically. iconic behaviour.
definition at line 57 of file rte_acl.h.
πΈ Author πΈ
Generated automatically by Doxygen for DPDK from the source code. not a human hand-written moment, just the machine doing its thing π€β¨
and that's the page, bestie!! this gorgeous lil' manpage is brought to you by DPDK, Version 26.03.0, and it's filed under rte_acl_field_def(3) in the Library Functions Manual. go forth and define your fields correctly, mwah πππ
π¦ 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