rte_acl_field_def(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… 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 type
  • uint8_t size β€” how big the field is
  • uint8_t field_index β€” where it sits inside the rule
  • uint8_t input_index β€” its index into the input
  • uint32_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