Scroll to navigation

rte_eth_ctrl.h(3) DPDK rte_eth_ctrl.h(3)

NAME

rte_eth_ctrl.h

SYNOPSIS

#include <stdint.h>
#include <rte_common.h>
#include <rte_ether.h>
#include 'rte_flow.h'
#include 'rte_ethdev.h'

Data Structures


struct rte_eth_ntuple_filter
struct rte_eth_input_set_conf
struct rte_eth_l2_flow
struct rte_eth_ipv4_flow
struct rte_eth_udpv4_flow
struct rte_eth_tcpv4_flow
struct rte_eth_sctpv4_flow
struct rte_eth_ipv6_flow
struct rte_eth_udpv6_flow
struct rte_eth_tcpv6_flow
struct rte_eth_sctpv6_flow
struct rte_eth_mac_vlan_flow
struct rte_eth_tunnel_flow
union rte_eth_fdir_flow
struct rte_eth_fdir_flow_ext
struct rte_eth_fdir_input
struct rte_eth_fdir_action
struct rte_eth_fdir_filter
struct rte_eth_fdir_masks
struct rte_eth_flex_payload_cfg
struct rte_eth_fdir_flex_mask
struct rte_eth_fdir_flex_conf
struct rte_eth_fdir_info
struct rte_eth_fdir_stats

Macros


#define RTE_NTUPLE_FLAGS_DST_IP 0x0001
#define RTE_NTUPLE_FLAGS_SRC_IP 0x0002
#define RTE_NTUPLE_FLAGS_DST_PORT 0x0004
#define RTE_NTUPLE_FLAGS_SRC_PORT 0x0008
#define RTE_NTUPLE_FLAGS_PROTO 0x0010
#define RTE_NTUPLE_FLAGS_TCP_FLAG 0x0020
#define RTE_NTUPLE_TCP_FLAGS_MASK 0x3F
#define RTE_ETH_FDIR_MAX_FLEXLEN 16
#define RTE_ETH_INSET_SIZE_MAX 128

Enumerations


enum rte_eth_input_set_field
enum rte_filter_input_set_op { , RTE_ETH_INPUT_SET_SELECT, RTE_ETH_INPUT_SET_ADD }
enum rte_eth_fdir_tunnel_type
enum rte_eth_fdir_behavior
enum rte_eth_fdir_status { RTE_ETH_FDIR_NO_REPORT_STATUS = 0, RTE_ETH_FDIR_REPORT_ID, RTE_ETH_FDIR_REPORT_ID_FLEX_4, RTE_ETH_FDIR_REPORT_FLEX_8 }
enum rte_eth_payload_type
enum rte_fdir_mode { RTE_FDIR_MODE_NONE = 0, RTE_FDIR_MODE_SIGNATURE, RTE_FDIR_MODE_PERFECT, RTE_FDIR_MODE_PERFECT_MAC_VLAN, RTE_FDIR_MODE_PERFECT_TUNNEL }

Detailed Description

Deprecated

Please use rte_flow API instead of this legacy one.

Ethernet device features and related data structures used by control APIs should be defined in this file.

Definition in file rte_eth_ctrl.h.

Macro Definition Documentation

#define RTE_NTUPLE_FLAGS_DST_IP 0x0001

Define all structures for ntuple Filter type.If set, dst_ip is part of ntuple

Definition at line 30 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_FLAGS_SRC_IP 0x0002

If set, src_ip is part of ntuple

Definition at line 31 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_FLAGS_DST_PORT 0x0004

If set, dst_port is part of ntuple

Definition at line 32 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_FLAGS_SRC_PORT 0x0008

If set, src_port is part of ntuple

Definition at line 33 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_FLAGS_PROTO 0x0010

If set, protocol is part of ntuple

Definition at line 34 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_FLAGS_TCP_FLAG 0x0020

If set, tcp flag is involved

Definition at line 35 of file rte_eth_ctrl.h.

#define RTE_NTUPLE_TCP_FLAGS_MASK 0x3F

TCP flags filter can match.

Definition at line 48 of file rte_eth_ctrl.h.

#define RTE_ETH_FDIR_MAX_FLEXLEN 16

Max length of flexbytes.

Definition at line 75 of file rte_eth_ctrl.h.

#define RTE_ETH_INSET_SIZE_MAX 128

Max length of input set.

Definition at line 76 of file rte_eth_ctrl.h.

Enumeration Type Documentation

enum rte_eth_input_set_field

Input set fields for Flow Director and Hash filters

Definition at line 81 of file rte_eth_ctrl.h.

enum rte_filter_input_set_op

Filters input set operations

Enumerator

select input set
add input set entry

Definition at line 137 of file rte_eth_ctrl.h.

enum rte_eth_fdir_tunnel_type

Tunnel type for flow director.

Definition at line 251 of file rte_eth_ctrl.h.

enum rte_eth_fdir_behavior

Behavior will be taken if FDIR match

Definition at line 311 of file rte_eth_ctrl.h.

enum rte_eth_fdir_status

Flow director report status It defines what will be reported if FDIR entry is matched.

Enumerator

Report nothing.
Only report FD ID.
Report FD ID and 4 flex bytes.
Report 8 flex bytes.

Definition at line 321 of file rte_eth_ctrl.h.

enum rte_eth_payload_type

Payload type

Definition at line 377 of file rte_eth_ctrl.h.

enum rte_fdir_mode

Flow Director setting modes: none, signature or perfect.

Enumerator

Disable FDIR support.
Enable FDIR signature filter mode.
Enable FDIR perfect filter mode.
Enable FDIR filter mode - MAC VLAN.
Enable FDIR filter mode - tunnel.

Definition at line 425 of file rte_eth_ctrl.h.

Author

Generated automatically by Doxygen for DPDK from the source code.

Thu May 23 2024 Version 23.11.0