---
name: "rte_eth_fdir_masks"
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_eth_fdir_masks"
---

# rte\_eth\_fdir\_masks(3)

## NAME

rte\_eth\_fdir\_masks

## SYNOPSIS

`#include <rte_eth_ctrl.h>`

### Data Fields

uint16\_t **vlan\_tci\_mask**\
 struct **rte\_eth\_ipv4\_flow** **ipv4\_mask**\
 struct **rte\_eth\_ipv6\_flow** **ipv6\_mask**\
 uint16\_t **src\_port\_mask**\
 uint16\_t **dst\_port\_mask**\
 uint8\_t **mac\_addr\_byte\_mask**\
 uint32\_t **tunnel\_id\_mask**\
 uint8\_t **tunnel\_type\_mask**\

## Detailed Description

A structure used to configure FDIR masks that are used by the device to match the various fields of Rx packet headers.

Definition at line **351** of file **rte\_eth\_ctrl.h**.

## Field Documentation

### uint16\_t vlan\_tci\_mask

Bit mask for vlan\_tci in big endian

Definition at line **352** of file **rte\_eth\_ctrl.h**.

### struct rte\_eth\_ipv4\_flow ipv4\_mask

Bit mask for ipv4 flow in big endian.

Definition at line **354** of file **rte\_eth\_ctrl.h**.

### struct rte\_eth\_ipv6\_flow ipv6\_mask

Bit mask for ipv6 flow in big endian.

Definition at line **356** of file **rte\_eth\_ctrl.h**.

### uint16\_t src\_port\_mask

Bit mask for L4 source port in big endian.

Definition at line **358** of file **rte\_eth\_ctrl.h**.

### uint16\_t dst\_port\_mask

Bit mask for L4 destination port in big endian.

Definition at line **360** of file **rte\_eth\_ctrl.h**.

### uint8\_t mac\_addr\_byte\_mask

6 bit mask for proper 6 bytes of Mac address, bit 0 matches the first byte on the wire

Definition at line **363** of file **rte\_eth\_ctrl.h**.

### uint32\_t tunnel\_id\_mask

Bit mask for tunnel ID in big endian.

Definition at line **365** of file **rte\_eth\_ctrl.h**.

### uint8\_t tunnel\_type\_mask

1 - Match tunnel type, 0 - Ignore tunnel type.

Definition at line **366** of file **rte\_eth\_ctrl.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
