rte_acl_field(3)

✨ rte_acl_field ✨

okay bestie, so this is a manual page for rte_acl_field β€” a Library Functions Manual situation, and it's lowkey ALL about how a single field inside a rule gets its value set. it's giving "small struct, big responsibility" πŸ’…


🌸 SYNTAX (SYNOPSIS) 🌸

first things first, you gotta pull in the header:

#include <rte_acl.h>

πŸŽ€ ALL UP IN THE DETAILS (DESCRIPTION) πŸŽ€

so what even is rte_acl_field? bestie, it defines the value of a field for a rule. that's it, that's the whole job, and it does it flawlessly. πŸ‘‘

in the source it lives at Definition at line 76 of file rte_acl.h. iconic address fr fr.


πŸ¦‹ THE FIELDS, ONE BY ONE (FIELD DOCUMENTATION) πŸ¦‹

πŸ’– union rte_acl_field_types value

this one is the actual value of the field β€” and it's a 1, 2, 4, or 8 byte value. pick your size, she contains multitudes.

Definition at line 77 of file rte_acl.h.

🌈 union rte_acl_field_types mask_range

okay this one is the shape-shifter and honestly? main character energy. what it means depends on the field type, so let's break it down exactly how the page does:

  • mask β†’ 1.2.3.4/32 gives you value=0x1020304, mask_range=32
  • range β†’ 0 : 65535 gives you value=0, mask_range=65535
  • bitmask β†’ 0x06/0xff gives you value=6, mask_range=0xff

like, she's a mask, she's a range, she's a bitmask β€” versatile queen. πŸ’…

Definition at line 79 of file rte_acl.h.


πŸ’œ WHO MADE THIS (AUTHOR) πŸ’œ

Generated automatically by Doxygen for DPDK from the source code. no human typed this out by hand, it was conjured by the docs machine itself 🧚


and that's a wrap bestie!! this page came to you from DPDK, Version 25.11.3, dated accordingly β€” so next time you're knee-deep in ACL fields, just remember: value goes in value, mystery mask stuff goes in mask_range, and you're slaying. periodt. πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from