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/32gives youvalue=0x1020304,mask_range=32 - range β
0 : 65535gives youvalue=0,mask_range=65535 - bitmask β
0x06/0xffgives youvalue=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
- 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