---
name: "rte_eth_ntuple_filter"
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_ntuple_filter"
---

# rte\_eth\_ntuple\_filter(3)

## NAME

rte\_eth\_ntuple\_filter

## SYNOPSIS

`#include <rte_eth_ctrl.h>`

### Data Fields

uint16\_t **flags**\
 uint32\_t **dst\_ip**\
 uint32\_t **dst\_ip\_mask**\
 uint32\_t **src\_ip**\
 uint32\_t **src\_ip\_mask**\
 uint16\_t **dst\_port**\
 uint16\_t **dst\_port\_mask**\
 uint16\_t **src\_port**\
 uint16\_t **src\_port\_mask**\
 uint8\_t **proto**\
 uint8\_t **proto\_mask**\
 uint8\_t **tcp\_flags**\
 uint16\_t **priority**\
 uint16\_t **queue**\

## Detailed Description

A structure used to define the ntuple filter entry to support RTE\_ETH\_FILTER\_NTUPLE data representation.

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

## Field Documentation

### uint16\_t flags

Flags from RTE\_NTUPLE\_FLAGS\_\*

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

### uint32\_t dst\_ip

Destination IP address in big endian.

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

### uint32\_t dst\_ip\_mask

Mask of destination IP address.

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

### uint32\_t src\_ip

Source IP address in big endian.

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

### uint32\_t src\_ip\_mask

Mask of destination IP address.

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

### uint16\_t dst\_port

Destination port in big endian.

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

### uint16\_t dst\_port\_mask

Mask of destination port.

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

### uint16\_t src\_port

Source Port in big endian.

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

### uint16\_t src\_port\_mask

Mask of source port.

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

### uint8\_t proto

L4 protocol.

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

### uint8\_t proto\_mask

Mask of L4 protocol.

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

### uint8\_t tcp\_flags

tcp\_flags only meaningful when the proto is TCP. The packet matched above ntuple fields and contain any set bit in tcp\_flags will hit this filter.

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

### uint16\_t priority

seven levels (001b-111b), 111b is highest, used when more than one filter matches.

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

### uint16\_t queue

Queue assigned to when match

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
