---
name: "rte_acl_field_def"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_acl_field_def"
---

# rte\_acl\_field\_def(3)

## NAME

rte\_acl\_field\_def

## SYNOPSIS

`#include <rte_acl.h>`

### Data Fields

uint8\_t **type**\
 uint8\_t **size**\
 uint8\_t **field\_index**\
 uint8\_t **input\_index**\
 uint32\_t **offset**\

## Detailed Description

ACL Field definition. Each field in the ACL rule has an associate definition. It defines the type of field, its size, its offset in the input buffer, the field index, and the input index. For performance reasons, the inner loop of the search function is unrolled to process four input bytes at a time. This requires the input to be grouped into sets of 4 consecutive bytes. The loop processes the first input byte as part of the setup and then subsequent bytes must be in groups of 4 consecutive bytes.

Definition at line **51** of file **rte\_acl.h**.

## Field Documentation

### uint8\_t type

type - RTE\_ACL\_FIELD\_TYPE\_\*.

Definition at line **52** of file **rte\_acl.h**.

### uint8\_t size

size of field 1,2,4, or 8.

Definition at line **53** of file **rte\_acl.h**.

### uint8\_t field\_index

index of field inside the rule.

Definition at line **54** of file **rte\_acl.h**.

### uint8\_t input\_index

0-N input index.

Definition at line **55** of file **rte\_acl.h**.

### uint32\_t offset

offset to start of field.

Definition at line **56** of file **rte\_acl.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
