rte_acl_field_def(3)

πŸ’– rte_acl_field_def πŸ’–

okay bestie, welcome to rte_acl_field_def(3) β€” it lives in the Library Functions Manual section 3, and it's genuinely such a cute little struct. sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

rte_acl_field_def β€” no cap, that's the whole name πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_acl.h>

🌸 Data Fields 🌸

here's the whole squad, in order:

uint8_t type
uint8_t size
uint8_t field_index
uint8_t input_index
uint32_t offset

πŸ‘‘ Detailed Description πŸ‘‘

so this is the ACL Field definition. periodt. every single field in an ACL rule gets its own little definition buddy, and that definition is doing five things: it says the type of the field, its size, its offset in the input buffer, the field index, and the input index. she's booked and busy πŸ’…

now the tea about performance 🍡 β€” for performance reasons, the inner loop of the search function is unrolled to process four input bytes at a time. and because of that, your 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 must be in groups of 4 consecutive bytes. so like, it's giving "alignment matters bestie", fr fr. πŸ™ˆ

Definition at line 52 of file rte_acl.h.


πŸŽ€ Field Documentation πŸŽ€

πŸ’œ uint8_t type

type β€” it's RTE_ACL_FIELD_TYPE_*. yes, the star means there's a whole family of them, go look them up iykyk ✨

Definition at line 53 of file rte_acl.h.

🩷 uint8_t size

size of field, and it can be 1, 2, 4, or 8. those are the only options, don't try to be clever 🫢

Definition at line 54 of file rte_acl.h.

πŸ¦„ uint8_t field_index

index of field inside the rule. she knows her place πŸ’…

Definition at line 55 of file rte_acl.h.

⭐ uint8_t input_index

0-N input index. so it starts at zero and goes up, no cap.

Definition at line 56 of file rte_acl.h.

🌈 uint32_t offset

offset to start of field. basically: where does this field actually begin ✨

Definition at line 57 of file rte_acl.h.


πŸ–ŠοΈ Author πŸ–ŠοΈ

Generated automatically by Doxygen for DPDK from the source code. not a human, just a lil robot doing her thing πŸ€–πŸ’–


okay that's the whole page bestie, you ate that. go forth and define your fields πŸ’…βœ¨

kisses, and goodnight from DPDK, Version 25.11.3, dated with love on the rte_acl_field_def(3) page πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from